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