@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssetModelPropertyDefinition extends Object implements Serializable, Cloneable, StructuredPojo
Contains an asset model property definition. This property definition is applied to all assets created from the asset model.
Constructor and Description |
---|
AssetModelPropertyDefinition() |
Modifier and Type | Method and Description |
---|---|
AssetModelPropertyDefinition |
clone() |
boolean |
equals(Object obj) |
String |
getDataType()
The data type of the property definition.
|
String |
getDataTypeSpec()
The data type of the structure for this property.
|
String |
getExternalId()
An external ID to assign to the property definition.
|
String |
getId()
The ID to assign to the asset model property, if desired.
|
String |
getName()
The name of the property definition.
|
PropertyType |
getType()
The property definition type (see
PropertyType ). |
String |
getUnit()
The unit of the property definition, such as
Newtons or RPM . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDataType(String dataType)
The data type of the property definition.
|
void |
setDataTypeSpec(String dataTypeSpec)
The data type of the structure for this property.
|
void |
setExternalId(String externalId)
An external ID to assign to the property definition.
|
void |
setId(String id)
The ID to assign to the asset model property, if desired.
|
void |
setName(String name)
The name of the property definition.
|
void |
setType(PropertyType type)
The property definition type (see
PropertyType ). |
void |
setUnit(String unit)
The unit of the property definition, such as
Newtons or RPM . |
String |
toString()
Returns a string representation of this object.
|
AssetModelPropertyDefinition |
withDataType(PropertyDataType dataType)
The data type of the property definition.
|
AssetModelPropertyDefinition |
withDataType(String dataType)
The data type of the property definition.
|
AssetModelPropertyDefinition |
withDataTypeSpec(String dataTypeSpec)
The data type of the structure for this property.
|
AssetModelPropertyDefinition |
withExternalId(String externalId)
An external ID to assign to the property definition.
|
AssetModelPropertyDefinition |
withId(String id)
The ID to assign to the asset model property, if desired.
|
AssetModelPropertyDefinition |
withName(String name)
The name of the property definition.
|
AssetModelPropertyDefinition |
withType(PropertyType type)
The property definition type (see
PropertyType ). |
AssetModelPropertyDefinition |
withUnit(String unit)
The unit of the property definition, such as
Newtons or RPM . |
public void setName(String name)
The name of the property definition.
name
- The name of the property definition.public String getName()
The name of the property definition.
public AssetModelPropertyDefinition withName(String name)
The name of the property definition.
name
- The name of the property definition.public void setDataType(String 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.
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.
PropertyDataType
public String getDataType()
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 you specify STRUCT
, you must also specify dataTypeSpec
to identify the type
of the structure for this property.
PropertyDataType
public AssetModelPropertyDefinition withDataType(String 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.
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.
PropertyDataType
public AssetModelPropertyDefinition withDataType(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.
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.
PropertyDataType
public void setDataTypeSpec(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.
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.
public String getDataTypeSpec()
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 AssetModelPropertyDefinition withDataTypeSpec(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.
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.
public void setUnit(String unit)
The unit of the property definition, such as Newtons
or RPM
.
unit
- The unit of the property definition, such as Newtons
or RPM
.public String getUnit()
The unit of the property definition, such as Newtons
or RPM
.
Newtons
or RPM
.public AssetModelPropertyDefinition withUnit(String unit)
The unit of the property definition, such as Newtons
or RPM
.
unit
- The unit of the property definition, such as Newtons
or RPM
.public void setType(PropertyType type)
The property definition type (see PropertyType
). You can only specify one type in a property
definition.
type
- The property definition type (see PropertyType
). You can only specify one type in a property
definition.public PropertyType getType()
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 withType(PropertyType type)
The property definition type (see PropertyType
). You can only specify one type in a property
definition.
type
- The property definition type (see PropertyType
). You can only specify one type in a property
definition.public void setId(String 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.
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.public String getId()
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.
public AssetModelPropertyDefinition withId(String 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.
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.public void setExternalId(String 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.
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.public String getExternalId()
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.
public AssetModelPropertyDefinition withExternalId(String 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.
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.public String toString()
toString
in class Object
Object.toString()
public AssetModelPropertyDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.