@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssetCompositeModel extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a composite model in an asset. This object contains the asset's properties that you define in the composite model.
Constructor and Description |
---|
AssetCompositeModel() |
Modifier and Type | Method and Description |
---|---|
AssetCompositeModel |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
The description of the composite model.
|
String |
getExternalId()
The external ID of the asset composite model.
|
String |
getId()
The ID of the asset composite model.
|
String |
getName()
The name of the composite model.
|
List<AssetProperty> |
getProperties()
The asset properties that this composite model defines.
|
String |
getType()
The type of the composite model.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescription(String description)
The description of the composite model.
|
void |
setExternalId(String externalId)
The external ID of the asset composite model.
|
void |
setId(String id)
The ID of the asset composite model.
|
void |
setName(String name)
The name of the composite model.
|
void |
setProperties(Collection<AssetProperty> properties)
The asset properties that this composite model defines.
|
void |
setType(String type)
The type of the composite model.
|
String |
toString()
Returns a string representation of this object.
|
AssetCompositeModel |
withDescription(String description)
The description of the composite model.
|
AssetCompositeModel |
withExternalId(String externalId)
The external ID of the asset composite model.
|
AssetCompositeModel |
withId(String id)
The ID of the asset composite model.
|
AssetCompositeModel |
withName(String name)
The name of the composite model.
|
AssetCompositeModel |
withProperties(AssetProperty... properties)
The asset properties that this composite model defines.
|
AssetCompositeModel |
withProperties(Collection<AssetProperty> properties)
The asset properties that this composite model defines.
|
AssetCompositeModel |
withType(String type)
The type of the composite model.
|
public void setName(String name)
The name of the composite model.
name
- The name of the composite model.public String getName()
The name of the composite model.
public AssetCompositeModel withName(String name)
The name of the composite model.
name
- The name of the composite model.public void setDescription(String description)
The description of the composite model.
description
- The description of the composite model.public String getDescription()
The description of the composite model.
public AssetCompositeModel withDescription(String description)
The description of the composite model.
description
- The description of the composite model.public void setType(String type)
The type of the composite model. For alarm composite models, this type is AWS/ALARM
.
type
- The type of the composite model. For alarm composite models, this type is AWS/ALARM
.public String getType()
The type of the composite model. For alarm composite models, this type is AWS/ALARM
.
AWS/ALARM
.public AssetCompositeModel withType(String type)
The type of the composite model. For alarm composite models, this type is AWS/ALARM
.
type
- The type of the composite model. For alarm composite models, this type is AWS/ALARM
.public List<AssetProperty> getProperties()
The asset properties that this composite model defines.
public void setProperties(Collection<AssetProperty> properties)
The asset properties that this composite model defines.
properties
- The asset properties that this composite model defines.public AssetCompositeModel withProperties(AssetProperty... properties)
The asset properties that this composite model defines.
NOTE: This method appends the values to the existing list (if any). Use
setProperties(java.util.Collection)
or withProperties(java.util.Collection)
if you want to
override the existing values.
properties
- The asset properties that this composite model defines.public AssetCompositeModel withProperties(Collection<AssetProperty> properties)
The asset properties that this composite model defines.
properties
- The asset properties that this composite model defines.public void setId(String id)
The ID of the asset composite model.
id
- The ID of the asset composite model.public String getId()
The ID of the asset composite model.
public AssetCompositeModel withId(String id)
The ID of the asset composite model.
id
- The ID of the asset composite model.public void setExternalId(String externalId)
The external ID of the asset composite model. For more information, see Using external IDs in the IoT SiteWise User Guide.
externalId
- The external ID of the asset composite model. For more information, see Using
external IDs in the IoT SiteWise User Guide.public String getExternalId()
The external ID of the asset composite model. For more information, see Using external IDs in the IoT SiteWise User Guide.
public AssetCompositeModel withExternalId(String externalId)
The external ID of the asset composite model. For more information, see Using external IDs in the IoT SiteWise User Guide.
externalId
- The external ID of the asset composite model. For more information, see Using
external IDs in the IoT SiteWise User Guide.public String toString()
toString
in class Object
Object.toString()
public AssetCompositeModel clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.