@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssetModelCompositeModelDefinition extends Object implements Serializable, Cloneable, StructuredPojo
Contains a composite model definition in an asset model. This composite model definition is applied to all assets created from the asset model.
Constructor and Description |
---|
AssetModelCompositeModelDefinition() |
Modifier and Type | Method and Description |
---|---|
AssetModelCompositeModelDefinition |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
The description of the composite model.
|
String |
getExternalId()
An external ID to assign to the composite model.
|
String |
getId()
The ID to assign to the composite model, if desired.
|
String |
getName()
The name of the composite model.
|
List<AssetModelPropertyDefinition> |
getProperties()
The asset property definitions for this composite model.
|
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)
An external ID to assign to the composite model.
|
void |
setId(String id)
The ID to assign to the composite model, if desired.
|
void |
setName(String name)
The name of the composite model.
|
void |
setProperties(Collection<AssetModelPropertyDefinition> properties)
The asset property definitions for this composite model.
|
void |
setType(String type)
The type of the composite model.
|
String |
toString()
Returns a string representation of this object.
|
AssetModelCompositeModelDefinition |
withDescription(String description)
The description of the composite model.
|
AssetModelCompositeModelDefinition |
withExternalId(String externalId)
An external ID to assign to the composite model.
|
AssetModelCompositeModelDefinition |
withId(String id)
The ID to assign to the composite model, if desired.
|
AssetModelCompositeModelDefinition |
withName(String name)
The name of the composite model.
|
AssetModelCompositeModelDefinition |
withProperties(AssetModelPropertyDefinition... properties)
The asset property definitions for this composite model.
|
AssetModelCompositeModelDefinition |
withProperties(Collection<AssetModelPropertyDefinition> properties)
The asset property definitions for this composite model.
|
AssetModelCompositeModelDefinition |
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 AssetModelCompositeModelDefinition 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 AssetModelCompositeModelDefinition 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 AssetModelCompositeModelDefinition 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<AssetModelPropertyDefinition> getProperties()
The asset property definitions for this composite model.
public void setProperties(Collection<AssetModelPropertyDefinition> properties)
The asset property definitions for this composite model.
properties
- The asset property definitions for this composite model.public AssetModelCompositeModelDefinition withProperties(AssetModelPropertyDefinition... properties)
The asset property definitions for this composite model.
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 property definitions for this composite model.public AssetModelCompositeModelDefinition withProperties(Collection<AssetModelPropertyDefinition> properties)
The asset property definitions for this composite model.
properties
- The asset property definitions for this composite model.public void setId(String id)
The ID to assign to the composite model, 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 composite model, 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 composite model, 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 AssetModelCompositeModelDefinition withId(String id)
The ID to assign to the composite model, 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 composite model, 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 composite model. The external ID must be unique among composite models 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 composite model. The external ID must be unique among composite models
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 composite model. The external ID must be unique among composite models within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
public AssetModelCompositeModelDefinition withExternalId(String externalId)
An external ID to assign to the composite model. The external ID must be unique among composite models 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 composite model. The external ID must be unique among composite models
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 AssetModelCompositeModelDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.