Class SettingDefinition
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SettingDefinition.Builder,SettingDefinition>
Defines the data type and validation constraints for a setting value. Exactly one member must be set.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionfinal ArraySettingarray()The setting's value is a JSON array whose items share one definition.final BooleanSettingThe setting's value is true or false.static SettingDefinition.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final FloatSettingThe setting's value is a number that may have a fractional part.static SettingDefinitionfromArray(Consumer<ArraySetting.Builder> array) Create an instance of this class witharray()initialized to the given value.static SettingDefinitionfromArray(ArraySetting array) Create an instance of this class witharray()initialized to the given value.static SettingDefinitionfromBooleanValue(Consumer<BooleanSetting.Builder> booleanValue) Create an instance of this class withbooleanValue()initialized to the given value.static SettingDefinitionfromBooleanValue(BooleanSetting booleanValue) Create an instance of this class withbooleanValue()initialized to the given value.static SettingDefinitionfromFloatValue(Consumer<FloatSetting.Builder> floatValue) Create an instance of this class withfloatValue()initialized to the given value.static SettingDefinitionfromFloatValue(FloatSetting floatValue) Create an instance of this class withfloatValue()initialized to the given value.static SettingDefinitionfromGroup(Consumer<GroupSetting.Builder> group) Create an instance of this class withgroup()initialized to the given value.static SettingDefinitionfromGroup(GroupSetting group) Create an instance of this class withgroup()initialized to the given value.static SettingDefinitionfromInteger(Consumer<IntegerSetting.Builder> integer) Create an instance of this class withinteger()initialized to the given value.static SettingDefinitionfromInteger(IntegerSetting integer) Create an instance of this class withinteger()initialized to the given value.static SettingDefinitionfromString(Consumer<StringSetting.Builder> string) Create an instance of this class withstring()initialized to the given value.static SettingDefinitionfromString(StringSetting string) Create an instance of this class withstring()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final GroupSettinggroup()The setting's value is a JSON object holding a nested set of settings.final inthashCode()final IntegerSettinginteger()The setting's value is a whole number.static Class<? extends SettingDefinition.Builder> final StringSettingstring()The setting's value is a string.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
string
The setting's value is a string.
- Returns:
- The setting's value is a string.
-
integer
The setting's value is a whole number.
- Returns:
- The setting's value is a whole number.
-
floatValue
The setting's value is a number that may have a fractional part.
- Returns:
- The setting's value is a number that may have a fractional part.
-
booleanValue
The setting's value is true or false.
- Returns:
- The setting's value is true or false.
-
array
The setting's value is a JSON array whose items share one definition.
- Returns:
- The setting's value is a JSON array whose items share one definition.
-
group
The setting's value is a JSON object holding a nested set of settings.
- Returns:
- The setting's value is a JSON object holding a nested set of settings.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<SettingDefinition.Builder,SettingDefinition> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromString
Create an instance of this class withstring()initialized to the given value.The setting's value is a string.
- Parameters:
string- The setting's value is a string.
-
fromString
Create an instance of this class withstring()initialized to the given value.The setting's value is a string.
- Parameters:
string- The setting's value is a string.
-
fromInteger
Create an instance of this class withinteger()initialized to the given value.The setting's value is a whole number.
- Parameters:
integer- The setting's value is a whole number.
-
fromInteger
Create an instance of this class withinteger()initialized to the given value.The setting's value is a whole number.
- Parameters:
integer- The setting's value is a whole number.
-
fromFloatValue
Create an instance of this class withfloatValue()initialized to the given value.The setting's value is a number that may have a fractional part.
- Parameters:
floatValue- The setting's value is a number that may have a fractional part.
-
fromFloatValue
Create an instance of this class withfloatValue()initialized to the given value.The setting's value is a number that may have a fractional part.
- Parameters:
floatValue- The setting's value is a number that may have a fractional part.
-
fromBooleanValue
Create an instance of this class withbooleanValue()initialized to the given value.The setting's value is true or false.
- Parameters:
booleanValue- The setting's value is true or false.
-
fromBooleanValue
Create an instance of this class withbooleanValue()initialized to the given value.The setting's value is true or false.
- Parameters:
booleanValue- The setting's value is true or false.
-
fromArray
Create an instance of this class witharray()initialized to the given value.The setting's value is a JSON array whose items share one definition.
- Parameters:
array- The setting's value is a JSON array whose items share one definition.
-
fromArray
Create an instance of this class witharray()initialized to the given value.The setting's value is a JSON array whose items share one definition.
- Parameters:
array- The setting's value is a JSON array whose items share one definition.
-
fromGroup
Create an instance of this class withgroup()initialized to the given value.The setting's value is a JSON object holding a nested set of settings.
- Parameters:
group- The setting's value is a JSON object holding a nested set of settings.
-
fromGroup
Create an instance of this class withgroup()initialized to the given value.The setting's value is a JSON object holding a nested set of settings.
- Parameters:
group- The setting's value is a JSON object holding a nested set of settings.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beSettingDefinition.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beSettingDefinition.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-