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