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 interface
AssetPropertyVariant.Builder
static class
AssetPropertyVariant.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
booleanValue()
Optional.static AssetPropertyVariant.Builder
builder()
String
doubleValue()
Optional.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
static AssetPropertyVariant
fromBooleanValue(String booleanValue)
Create an instance of this class withbooleanValue()
initialized to the given value.static AssetPropertyVariant
fromDoubleValue(String doubleValue)
Create an instance of this class withdoubleValue()
initialized to the given value.static AssetPropertyVariant
fromIntegerValue(String integerValue)
Create an instance of this class withintegerValue()
initialized to the given value.static AssetPropertyVariant
fromStringValue(String stringValue)
Create an instance of this class withstringValue()
initialized to the given value.<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
integerValue()
Optional.Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends AssetPropertyVariant.Builder>
serializableBuilderClass()
String
stringValue()
Optional.AssetPropertyVariant.Builder
toBuilder()
String
toString()
Returns a string representation of this object.AssetPropertyVariant.Type
type()
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 (
true
orfalse
) of the value entry. Accepts substitution templates.- Returns:
- Optional. A string that contains the boolean value (
true
orfalse
) of the value entry. Accepts substitution templates.
-
toBuilder
public AssetPropertyVariant.Builder toBuilder()
- Specified by:
toBuilder
in 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:
equalsBySdkFields
in 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 (
true
orfalse
) of the value entry. Accepts substitution templates.- Parameters:
booleanValue
- Optional. A string that contains the boolean value (true
orfalse
) 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_VERSION
if 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_VERSION
if zero members are set, andnull
if more than one member is set.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-