@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 |
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) |
void |
setDataType(String dataType)
The data type of the property definition.
|
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 |
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.
dataType - The data type of the property definition.PropertyDataTypepublic String getDataType()
The data type of the property definition.
PropertyDataTypepublic AssetModelPropertyDefinition withDataType(String dataType)
The data type of the property definition.
dataType - The data type of the property definition.PropertyDataTypepublic AssetModelPropertyDefinition withDataType(PropertyDataType dataType)
The data type of the property definition.
dataType - The data type of the property definition.PropertyDataTypepublic 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 ObjectObject.toString()public AssetModelPropertyDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2020. All rights reserved.