@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 |
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 |
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 |
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 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.