@Generated(value="software.amazon.awssdk:codegen") public final class AssetModelPropertyDefinition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AssetModelPropertyDefinition.Builder,AssetModelPropertyDefinition>
Contains an asset model property definition. This property definition is applied to all assets created from the asset model.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AssetModelPropertyDefinition.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AssetModelPropertyDefinition.Builder |
builder() |
PropertyDataType |
dataType()
The data type of the property definition.
|
String |
dataTypeAsString()
The data type of the property definition.
|
String |
dataTypeSpec()
The data type of the structure for this property.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the property definition.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AssetModelPropertyDefinition.Builder> |
serializableBuilderClass() |
AssetModelPropertyDefinition.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
PropertyType |
type()
The property definition type (see
PropertyType). |
String |
unit()
The unit of the property definition, such as
Newtons or RPM. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the property definition.
public final PropertyDataType dataType()
The data type of the property definition.
If you specify STRUCT, you must also specify dataTypeSpec to identify the type of the
structure for this property.
If the service returns an enum value that is not available in the current SDK version, dataType will
return PropertyDataType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
dataTypeAsString().
If you specify STRUCT, you must also specify dataTypeSpec to identify the type
of the structure for this property.
PropertyDataTypepublic final String dataTypeAsString()
The data type of the property definition.
If you specify STRUCT, you must also specify dataTypeSpec to identify the type of the
structure for this property.
If the service returns an enum value that is not available in the current SDK version, dataType will
return PropertyDataType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
dataTypeAsString().
If you specify STRUCT, you must also specify dataTypeSpec to identify the type
of the structure for this property.
PropertyDataTypepublic final String dataTypeSpec()
The data type of the structure for this property. This parameter is required on properties that have the
STRUCT data type.
The options for this parameter depend on the type of the composite model in which you define this property. Use
AWS/ALARM_STATE for alarm state in alarm composite models.
STRUCT data type.
The options for this parameter depend on the type of the composite model in which you define this
property. Use AWS/ALARM_STATE for alarm state in alarm composite models.
public final String unit()
The unit of the property definition, such as Newtons or RPM.
Newtons or RPM.public final PropertyType type()
The property definition type (see PropertyType). You can only specify one type in a property
definition.
PropertyType). You can only specify one type in a property
definition.public AssetModelPropertyDefinition.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AssetModelPropertyDefinition.Builder,AssetModelPropertyDefinition>public static AssetModelPropertyDefinition.Builder builder()
public static Class<? extends AssetModelPropertyDefinition.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.