Class ConfigurationManagementResponse.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class ConfigurationManagementResponse.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for ConfigurationManagementResponse instances.
-
-
Field Summary
Fields Modifier and Type Field Description public boolean
success
public ExceptionEnvelope
exception
public ExceptionEnvelope.Builder
exceptionBuilder
public String
section
public String
config
public ConfigurationSchemaVersion
schemaVersion
public ConfigurationSchemaVersion.Builder
schemaVersionBuilder
public int
version
-
Method Summary
Modifier and Type Method Description boolean
getSuccess()
Gets the value of the 'success' field. ConfigurationManagementResponse.Builder
setSuccess(boolean value)
Sets the value of the 'success' field. ExceptionEnvelope
getException()
Gets the value of the 'exception' field. ConfigurationManagementResponse.Builder
setException(ExceptionEnvelope value)
Sets the value of the 'exception' field. ExceptionEnvelope.Builder
getExceptionBuilder()
Gets the Builder instance for the 'exception' field and creates one if it doesn't exist yet. ConfigurationManagementResponse.Builder
setExceptionBuilder(ExceptionEnvelope.Builder value)
Sets the Builder instance for the 'exception' field The cause of failure if the request was unsuccessful. String
getSection()
Gets the value of the 'section' field. ConfigurationManagementResponse.Builder
setSection(String value)
Sets the value of the 'section' field. String
getConfig()
Gets the value of the 'config' field. ConfigurationManagementResponse.Builder
setConfig(String value)
Sets the value of the 'config' field. ConfigurationSchemaVersion
getSchemaVersion()
Gets the value of the 'schemaVersion' field. ConfigurationManagementResponse.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. ConfigurationManagementResponse.Builder
setSchemaVersionBuilder(ConfigurationSchemaVersion.Builder value)
Sets the Builder instance for the 'schemaVersion' field Schema version of the current configuration. int
getVersion()
Gets the value of the 'version' field. ConfigurationManagementResponse.Builder
setVersion(int value)
Sets the value of the 'version' field. boolean
hasSuccess()
Checks whether the 'success' field has been set. ConfigurationManagementResponse.Builder
clearSuccess()
Clears the value of the 'success' field. boolean
hasException()
Checks whether the 'exception' field has been set. boolean
hasExceptionBuilder()
Checks whether the 'exception' field has an active Builder instance The cause of failure if the request was unsuccessful. ConfigurationManagementResponse.Builder
clearException()
Clears the value of the 'exception' field. boolean
hasSection()
Checks whether the 'section' field has been set. ConfigurationManagementResponse.Builder
clearSection()
Clears the value of the 'section' field. boolean
hasConfig()
Checks whether the 'config' field has been set. ConfigurationManagementResponse.Builder
clearConfig()
Clears the value of the 'config' 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 of the current configuration. ConfigurationManagementResponse.Builder
clearSchemaVersion()
Clears the value of the 'schemaVersion' field. boolean
hasVersion()
Checks whether the 'version' field has been set. ConfigurationManagementResponse.Builder
clearVersion()
Clears the value of the 'version' field. ConfigurationManagementResponse
build()
-
-
Method Detail
-
getSuccess
boolean getSuccess()
Gets the value of the 'success' field. Whether the request was successful.
- Returns:
The value.
-
setSuccess
ConfigurationManagementResponse.Builder setSuccess(boolean value)
Sets the value of the 'success' field. Whether the request was successful.
- Parameters:
value
- The value of 'success'.- Returns:
This builder.
-
getException
ExceptionEnvelope getException()
Gets the value of the 'exception' field. The cause of failure if the request was unsuccessful.
- Returns:
The value.
-
setException
ConfigurationManagementResponse.Builder setException(ExceptionEnvelope value)
Sets the value of the 'exception' field. The cause of failure if the request was unsuccessful.
- Parameters:
value
- The value of 'exception'.- Returns:
This builder.
-
getExceptionBuilder
ExceptionEnvelope.Builder getExceptionBuilder()
Gets the Builder instance for the 'exception' field and creates one if it doesn't exist yet. The cause of failure if the request was unsuccessful.
- Returns:
This builder.
-
setExceptionBuilder
ConfigurationManagementResponse.Builder setExceptionBuilder(ExceptionEnvelope.Builder value)
Sets the Builder instance for the 'exception' field The cause of failure if the request was unsuccessful.
- Parameters:
value
- The builder instance that must be set.- Returns:
This builder.
-
getSection
String getSection()
Gets the value of the 'section' field. The configuration section for which an update was requested.
- Returns:
The value.
-
setSection
ConfigurationManagementResponse.Builder setSection(String value)
Sets the value of the 'section' field. The configuration section for which an update was requested.
- Parameters:
value
- The value of 'section'.- Returns:
This builder.
-
getConfig
String getConfig()
Gets the value of the 'config' field. The current configuration in JSON format for the given section.
- Returns:
The value.
-
setConfig
ConfigurationManagementResponse.Builder setConfig(String value)
Sets the value of the 'config' field. The current configuration in JSON format for the given section.
- Parameters:
value
- The value of 'config'.- Returns:
This builder.
-
getSchemaVersion
ConfigurationSchemaVersion getSchemaVersion()
Gets the value of the 'schemaVersion' field. Schema version of the current configuration.
- Returns:
The value.
-
setSchemaVersion
ConfigurationManagementResponse.Builder setSchemaVersion(ConfigurationSchemaVersion value)
Sets the value of the 'schemaVersion' field. Schema version of the current configuration.
- Parameters:
value
- The value of 'schemaVersion'.- Returns:
This builder.
-
getSchemaVersionBuilder
ConfigurationSchemaVersion.Builder getSchemaVersionBuilder()
Gets the Builder instance for the 'schemaVersion' field and creates one if it doesn't exist yet. Schema version of the current configuration.
- Returns:
This builder.
-
setSchemaVersionBuilder
ConfigurationManagementResponse.Builder setSchemaVersionBuilder(ConfigurationSchemaVersion.Builder value)
Sets the Builder instance for the 'schemaVersion' field Schema version of the current configuration.
- Parameters:
value
- The builder instance that must be set.- Returns:
This builder.
-
getVersion
int getVersion()
Gets the value of the 'version' field. The current configuration's optimistic-locking version for the given section.
- Returns:
The value.
-
setVersion
ConfigurationManagementResponse.Builder setVersion(int value)
Sets the value of the 'version' field. The current configuration's optimistic-locking version for the given section.
- Parameters:
value
- The value of 'version'.- Returns:
This builder.
-
hasSuccess
boolean hasSuccess()
Checks whether the 'success' field has been set. Whether the request was successful.
- Returns:
True if the 'success' field has been set, false otherwise.
-
clearSuccess
ConfigurationManagementResponse.Builder clearSuccess()
Clears the value of the 'success' field. Whether the request was successful.
- Returns:
This builder.
-
hasException
boolean hasException()
Checks whether the 'exception' field has been set. The cause of failure if the request was unsuccessful.
- Returns:
True if the 'exception' field has been set, false otherwise.
-
hasExceptionBuilder
boolean hasExceptionBuilder()
Checks whether the 'exception' field has an active Builder instance The cause of failure if the request was unsuccessful.
- Returns:
True if the 'exception' field has an active Builder instance
-
clearException
ConfigurationManagementResponse.Builder clearException()
Clears the value of the 'exception' field. The cause of failure if the request was unsuccessful.
- Returns:
This builder.
-
hasSection
boolean hasSection()
Checks whether the 'section' field has been set. The configuration section for which an update was requested.
- Returns:
True if the 'section' field has been set, false otherwise.
-
clearSection
ConfigurationManagementResponse.Builder clearSection()
Clears the value of the 'section' field. The configuration section for which an update was requested.
- Returns:
This builder.
-
hasConfig
boolean hasConfig()
Checks whether the 'config' field has been set. The current configuration in JSON format for the given section.
- Returns:
True if the 'config' field has been set, false otherwise.
-
clearConfig
ConfigurationManagementResponse.Builder clearConfig()
Clears the value of the 'config' field. The current configuration in JSON format for the given section.
- Returns:
This builder.
-
hasSchemaVersion
boolean hasSchemaVersion()
Checks whether the 'schemaVersion' field has been set. Schema version of the current configuration.
- Returns:
True if the 'schemaVersion' field has been set, false otherwise.
-
hasSchemaVersionBuilder
boolean hasSchemaVersionBuilder()
Checks whether the 'schemaVersion' field has an active Builder instance Schema version of the current configuration.
- Returns:
True if the 'schemaVersion' field has an active Builder instance
-
clearSchemaVersion
ConfigurationManagementResponse.Builder clearSchemaVersion()
Clears the value of the 'schemaVersion' field. Schema version of the current configuration.
- Returns:
This builder.
-
hasVersion
boolean hasVersion()
Checks whether the 'version' field has been set. The current configuration's optimistic-locking version for the given section.
- Returns:
True if the 'version' field has been set, false otherwise.
-
clearVersion
ConfigurationManagementResponse.Builder clearVersion()
Clears the value of the 'version' field. The current configuration's optimistic-locking version for the given section.
- Returns:
This builder.
-
build
ConfigurationManagementResponse build()
-
-
-
-