Class AssetPropertyVariant
- java.lang.Object
-
- software.amazon.awssdk.services.iot.model.AssetPropertyVariant
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AssetPropertyVariant.Builder,AssetPropertyVariant>
@Generated("software.amazon.awssdk:codegen") public final class AssetPropertyVariant extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AssetPropertyVariant.Builder,AssetPropertyVariant>
Contains an asset property value (of a single type).
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAssetPropertyVariant.Builderstatic classAssetPropertyVariant.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbooleanValue()Optional.static AssetPropertyVariant.Builderbuilder()StringdoubleValue()Optional.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static AssetPropertyVariantfromBooleanValue(String booleanValue)Create an instance of this class withbooleanValue()initialized to the given value.static AssetPropertyVariantfromDoubleValue(String doubleValue)Create an instance of this class withdoubleValue()initialized to the given value.static AssetPropertyVariantfromIntegerValue(String integerValue)Create an instance of this class withintegerValue()initialized to the given value.static AssetPropertyVariantfromStringValue(String stringValue)Create an instance of this class withstringValue()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringintegerValue()Optional.List<SdkField<?>>sdkFields()static Class<? extends AssetPropertyVariant.Builder>serializableBuilderClass()StringstringValue()Optional.AssetPropertyVariant.BuildertoBuilder()StringtoString()Returns a string representation of this object.AssetPropertyVariant.Typetype()Retrieve an enum value representing which member of this object is populated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
stringValue
public final String stringValue()
Optional. The string value of the value entry. Accepts substitution templates.
- Returns:
- Optional. The string value of the value entry. Accepts substitution templates.
-
integerValue
public final String integerValue()
Optional. A string that contains the integer value of the value entry. Accepts substitution templates.
- Returns:
- Optional. A string that contains the integer value of the value entry. Accepts substitution templates.
-
doubleValue
public final String doubleValue()
Optional. A string that contains the double value of the value entry. Accepts substitution templates.
- Returns:
- Optional. A string that contains the double value of the value entry. Accepts substitution templates.
-
booleanValue
public final String booleanValue()
Optional. A string that contains the boolean value (
trueorfalse) of the value entry. Accepts substitution templates.- Returns:
- Optional. A string that contains the boolean value (
trueorfalse) of the value entry. Accepts substitution templates.
-
toBuilder
public AssetPropertyVariant.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AssetPropertyVariant.Builder,AssetPropertyVariant>
-
builder
public static AssetPropertyVariant.Builder builder()
-
serializableBuilderClass
public static Class<? extends AssetPropertyVariant.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
fromStringValue
public static AssetPropertyVariant fromStringValue(String stringValue)
Create an instance of this class withstringValue()initialized to the given value.Optional. The string value of the value entry. Accepts substitution templates.
- Parameters:
stringValue- Optional. The string value of the value entry. Accepts substitution templates.
-
fromIntegerValue
public static AssetPropertyVariant fromIntegerValue(String integerValue)
Create an instance of this class withintegerValue()initialized to the given value.Optional. A string that contains the integer value of the value entry. Accepts substitution templates.
- Parameters:
integerValue- Optional. A string that contains the integer value of the value entry. Accepts substitution templates.
-
fromDoubleValue
public static AssetPropertyVariant fromDoubleValue(String doubleValue)
Create an instance of this class withdoubleValue()initialized to the given value.Optional. A string that contains the double value of the value entry. Accepts substitution templates.
- Parameters:
doubleValue- Optional. A string that contains the double value of the value entry. Accepts substitution templates.
-
fromBooleanValue
public static AssetPropertyVariant fromBooleanValue(String booleanValue)
Create an instance of this class withbooleanValue()initialized to the given value.Optional. A string that contains the boolean value (
trueorfalse) of the value entry. Accepts substitution templates.- Parameters:
booleanValue- Optional. A string that contains the boolean value (trueorfalse) of the value entry. Accepts substitution templates.
-
type
public AssetPropertyVariant.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beAssetPropertyVariant.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 beAssetPropertyVariant.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-