Class AssetModelPropertyDefinition
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AssetModelPropertyDefinition.Builder,AssetModelPropertyDefinition>
Contains an asset model property definition. This property definition is applied to all assets created from the asset model.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final PropertyDataTypedataType()The data type of the property definition.final StringThe data type of the property definition.final StringThe data type of the structure for this property.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringAn external ID to assign to the property definition.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringid()The ID to assign to the asset model property, if desired.final Stringname()The name of the property definition.static Class<? extends AssetModelPropertyDefinition.Builder> 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.final PropertyTypetype()The property definition type (seePropertyType).final Stringunit()The unit of the property definition, such asNewtonsorRPM.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
The ID to assign to the asset model property, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. However, if you prefer to supply your own ID instead, you can specify it here in UUID format. If you specify your own ID, it must be globally unique.
- Returns:
- The ID to assign to the asset model property, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. However, if you prefer to supply your own ID instead, you can specify it here in UUID format. If you specify your own ID, it must be globally unique.
-
externalId
An external ID to assign to the property definition. The external ID must be unique among property definitions within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
- Returns:
- An external ID to assign to the property definition. The external ID must be unique among property definitions within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
-
name
The name of the property definition.
- Returns:
- The name of the property definition.
-
dataType
The data type of the property definition.
If you specify
STRUCT, you must also specifydataTypeSpecto 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,
dataTypewill returnPropertyDataType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdataTypeAsString().- Returns:
- The data type of the property definition.
If you specify
STRUCT, you must also specifydataTypeSpecto identify the type of the structure for this property. - See Also:
-
dataTypeAsString
The data type of the property definition.
If you specify
STRUCT, you must also specifydataTypeSpecto 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,
dataTypewill returnPropertyDataType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdataTypeAsString().- Returns:
- The data type of the property definition.
If you specify
STRUCT, you must also specifydataTypeSpecto identify the type of the structure for this property. - See Also:
-
dataTypeSpec
The data type of the structure for this property. This parameter is required on properties that have the
STRUCTdata type.The options for this parameter depend on the type of the composite model in which you define this property. Use
AWS/ALARM_STATEfor alarm state in alarm composite models.- Returns:
- The data type of the structure for this property. This parameter is required on properties that have the
STRUCTdata type.The options for this parameter depend on the type of the composite model in which you define this property. Use
AWS/ALARM_STATEfor alarm state in alarm composite models.
-
unit
The unit of the property definition, such as
NewtonsorRPM.- Returns:
- The unit of the property definition, such as
NewtonsorRPM.
-
type
The property definition type (see
PropertyType). You can only specify one type in a property definition.- Returns:
- The property definition type (see
PropertyType). You can only specify one type in a property definition.
-
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<AssetModelPropertyDefinition.Builder,AssetModelPropertyDefinition> - 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
-
sdkFields
-