@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssetModelHierarchy extends Object implements Serializable, Cloneable, StructuredPojo
Describes an asset hierarchy that contains a hierarchy's name, ID, and child asset model ID that specifies the type of asset that can be in this hierarchy.
Constructor and Description |
---|
AssetModelHierarchy() |
Modifier and Type | Method and Description |
---|---|
AssetModelHierarchy |
clone() |
boolean |
equals(Object obj) |
String |
getChildAssetModelId()
The ID of the asset model.
|
String |
getId()
The ID of the asset model hierarchy.
|
String |
getName()
The name of the asset model hierarchy that you specify by using the CreateAssetModel or UpdateAssetModel API operation.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setChildAssetModelId(String childAssetModelId)
The ID of the asset model.
|
void |
setId(String id)
The ID of the asset model hierarchy.
|
void |
setName(String name)
The name of the asset model hierarchy that you specify by using the CreateAssetModel or UpdateAssetModel API operation.
|
String |
toString()
Returns a string representation of this object.
|
AssetModelHierarchy |
withChildAssetModelId(String childAssetModelId)
The ID of the asset model.
|
AssetModelHierarchy |
withId(String id)
The ID of the asset model hierarchy.
|
AssetModelHierarchy |
withName(String name)
The name of the asset model hierarchy that you specify by using the CreateAssetModel or UpdateAssetModel API operation.
|
public void setId(String id)
The ID of the asset model hierarchy. This ID is a hierarchyId
.
id
- The ID of the asset model hierarchy. This ID is a hierarchyId
.public String getId()
The ID of the asset model hierarchy. This ID is a hierarchyId
.
hierarchyId
.public AssetModelHierarchy withId(String id)
The ID of the asset model hierarchy. This ID is a hierarchyId
.
id
- The ID of the asset model hierarchy. This ID is a hierarchyId
.public void setName(String name)
The name of the asset model hierarchy that you specify by using the CreateAssetModel or UpdateAssetModel API operation.
name
- The name of the asset model hierarchy that you specify by using the CreateAssetModel or UpdateAssetModel API operation.public String getName()
The name of the asset model hierarchy that you specify by using the CreateAssetModel or UpdateAssetModel API operation.
public AssetModelHierarchy withName(String name)
The name of the asset model hierarchy that you specify by using the CreateAssetModel or UpdateAssetModel API operation.
name
- The name of the asset model hierarchy that you specify by using the CreateAssetModel or UpdateAssetModel API operation.public void setChildAssetModelId(String childAssetModelId)
The ID of the asset model. All assets in this hierarchy must be instances of the childAssetModelId
asset model.
childAssetModelId
- The ID of the asset model. All assets in this hierarchy must be instances of the
childAssetModelId
asset model.public String getChildAssetModelId()
The ID of the asset model. All assets in this hierarchy must be instances of the childAssetModelId
asset model.
childAssetModelId
asset model.public AssetModelHierarchy withChildAssetModelId(String childAssetModelId)
The ID of the asset model. All assets in this hierarchy must be instances of the childAssetModelId
asset model.
childAssetModelId
- The ID of the asset model. All assets in this hierarchy must be instances of the
childAssetModelId
asset model.public String toString()
toString
in class Object
Object.toString()
public AssetModelHierarchy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.