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.
-
setSuccess
ConfigurationManagementResponse.Builder setSuccess(boolean value)
Sets the value of the 'success' field. Whether the request was successful.
- Parameters:
value
- The value of 'success'.
-
getException
ExceptionEnvelope getException()
Gets the value of the 'exception' field. The cause of failure if the request was unsuccessful.
-
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'.
-
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.
-
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.
-
getSection
String getSection()
Gets the value of the 'section' field. The configuration section for which an update was requested.
-
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'.
-
getConfig
String getConfig()
Gets the value of the 'config' field. The current configuration in JSON format for the given section.
-
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'.
-
getSchemaVersion
ConfigurationSchemaVersion getSchemaVersion()
Gets the value of the 'schemaVersion' field. Schema version of the current configuration.
-
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'.
-
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.
-
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.
-
getVersion
int getVersion()
Gets the value of the 'version' field. The current configuration's optimistic-locking version for the given section.
-
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'.
-
hasSuccess
boolean hasSuccess()
Checks whether the 'success' field has been set. Whether the request was successful.
-
clearSuccess
ConfigurationManagementResponse.Builder clearSuccess()
Clears the value of the 'success' field. Whether the request was successful.
-
hasException
boolean hasException()
Checks whether the 'exception' field has been set. The cause of failure if the request was unsuccessful.
-
hasExceptionBuilder
boolean hasExceptionBuilder()
Checks whether the 'exception' field has an active Builder instance The cause of failure if the request was unsuccessful.
-
clearException
ConfigurationManagementResponse.Builder clearException()
Clears the value of the 'exception' field. The cause of failure if the request was unsuccessful.
-
hasSection
boolean hasSection()
Checks whether the 'section' field has been set. The configuration section for which an update was requested.
-
clearSection
ConfigurationManagementResponse.Builder clearSection()
Clears the value of the 'section' field. The configuration section for which an update was requested.
-
hasConfig
boolean hasConfig()
Checks whether the 'config' field has been set. The current configuration in JSON format for the given section.
-
clearConfig
ConfigurationManagementResponse.Builder clearConfig()
Clears the value of the 'config' field. The current configuration in JSON format for the given section.
-
hasSchemaVersion
boolean hasSchemaVersion()
Checks whether the 'schemaVersion' field has been set. Schema version of the current configuration.
-
hasSchemaVersionBuilder
boolean hasSchemaVersionBuilder()
Checks whether the 'schemaVersion' field has an active Builder instance Schema version of the current configuration.
-
clearSchemaVersion
ConfigurationManagementResponse.Builder clearSchemaVersion()
Clears the value of the 'schemaVersion' field. Schema version of the current configuration.
-
hasVersion
boolean hasVersion()
Checks whether the 'version' field has been set. The current configuration's optimistic-locking version for the given section.
-
clearVersion
ConfigurationManagementResponse.Builder clearVersion()
Clears the value of the 'version' field. The current configuration's optimistic-locking version for the given section.
-
build
ConfigurationManagementResponse build()
-
-
-
-