@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)
Marshalls this structured data using the given
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.PropertyDataType
public String getDataType()
The data type of the property definition.
PropertyDataType
public AssetModelPropertyDefinition withDataType(String dataType)
The data type of the property definition.
dataType
- The data type of the property definition.PropertyDataType
public AssetModelPropertyDefinition withDataType(PropertyDataType dataType)
The data type of the property definition.
dataType
- The data type of the property definition.PropertyDataType
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.