Class Configuration.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class Configuration.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for Configuration instances.
-
-
Field Summary
Fields Modifier and Type Field Description public String
value
public String
source
public int
version
public ConfigurationSchemaVersion
schemaVersion
public ConfigurationSchemaVersion.Builder
schemaVersionBuilder
-
Method Summary
Modifier and Type Method Description String
getValue()
Gets the value of the 'value' field. Configuration.Builder
setValue(String value)
Sets the value of the 'value' field. String
getSource()
Gets the value of the 'source' field. Configuration.Builder
setSource(String value)
Sets the value of the 'source' field. int
getVersion()
Gets the value of the 'version' field. Configuration.Builder
setVersion(int value)
Sets the value of the 'version' field. ConfigurationSchemaVersion
getSchemaVersion()
Gets the value of the 'schemaVersion' field. Configuration.Builder
setSchemaVersion(ConfigurationSchemaVersion value)
Sets the value of the 'schemaVersion' field. ConfigurationSchemaVersion.Builder
getSchemaVersionBuilder()
Gets the Builder instance for the 'schemaVersion' field and creates one if it doesn't exist yet. Configuration.Builder
setSchemaVersionBuilder(ConfigurationSchemaVersion.Builder value)
Sets the Builder instance for the 'schemaVersion' field Schema version for this configuration. boolean
hasValue()
Checks whether the 'value' field has been set. Configuration.Builder
clearValue()
Clears the value of the 'value' field. boolean
hasSource()
Checks whether the 'source' field has been set. Configuration.Builder
clearSource()
Clears the value of the 'source' field. boolean
hasVersion()
Checks whether the 'version' field has been set. Configuration.Builder
clearVersion()
Clears the value of the 'version' field. boolean
hasSchemaVersion()
Checks whether the 'schemaVersion' field has been set. boolean
hasSchemaVersionBuilder()
Checks whether the 'schemaVersion' field has an active Builder instance Schema version for this configuration. Configuration.Builder
clearSchemaVersion()
Clears the value of the 'schemaVersion' field. Configuration
build()
-
-
Method Detail
-
getValue
String getValue()
Gets the value of the 'value' field. Configuration values, as a JSON/HCON structure, with defaults applied.
-
setValue
Configuration.Builder setValue(String value)
Sets the value of the 'value' field. Configuration values, as a JSON/HCON structure, with defaults applied.
- Parameters:
value
- The value of 'value'.
-
getSource
String getSource()
Gets the value of the 'source' field. Configuration values, as a JSON/HCON structure, before defaults applied.
-
setSource
Configuration.Builder setSource(String value)
Sets the value of the 'source' field. Configuration values, as a JSON/HCON structure, before defaults applied.
- Parameters:
value
- The value of 'source'.
-
getVersion
int getVersion()
Gets the value of the 'version' field.
-
setVersion
Configuration.Builder setVersion(int value)
Sets the value of the 'version' field.
- Parameters:
value
- The value of 'version'.
-
getSchemaVersion
ConfigurationSchemaVersion getSchemaVersion()
Gets the value of the 'schemaVersion' field. Schema version for this configuration.
-
setSchemaVersion
Configuration.Builder setSchemaVersion(ConfigurationSchemaVersion value)
Sets the value of the 'schemaVersion' field. Schema version for this configuration.
- Parameters:
value
- The value of 'schemaVersion'.
-
getSchemaVersionBuilder
ConfigurationSchemaVersion.Builder getSchemaVersionBuilder()
Gets the Builder instance for the 'schemaVersion' field and creates one if it doesn't exist yet. Schema version for this configuration.
-
setSchemaVersionBuilder
Configuration.Builder setSchemaVersionBuilder(ConfigurationSchemaVersion.Builder value)
Sets the Builder instance for the 'schemaVersion' field Schema version for this configuration.
- Parameters:
value
- The builder instance that must be set.
-
hasValue
boolean hasValue()
Checks whether the 'value' field has been set. Configuration values, as a JSON/HCON structure, with defaults applied.
-
clearValue
Configuration.Builder clearValue()
Clears the value of the 'value' field. Configuration values, as a JSON/HCON structure, with defaults applied.
-
hasSource
boolean hasSource()
Checks whether the 'source' field has been set. Configuration values, as a JSON/HCON structure, before defaults applied.
-
clearSource
Configuration.Builder clearSource()
Clears the value of the 'source' field. Configuration values, as a JSON/HCON structure, before defaults applied.
-
hasVersion
boolean hasVersion()
Checks whether the 'version' field has been set.
-
clearVersion
Configuration.Builder clearVersion()
Clears the value of the 'version' field.
-
hasSchemaVersion
boolean hasSchemaVersion()
Checks whether the 'schemaVersion' field has been set. Schema version for this configuration.
-
hasSchemaVersionBuilder
boolean hasSchemaVersionBuilder()
Checks whether the 'schemaVersion' field has an active Builder instance Schema version for this configuration.
-
clearSchemaVersion
Configuration.Builder clearSchemaVersion()
Clears the value of the 'schemaVersion' field. Schema version for this configuration.
-
build
Configuration build()
-
-
-
-