@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 |
getExternalId()
The external ID of the hierarchy, if it has one.
|
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 |
setExternalId(String externalId)
The external ID of the hierarchy, if it has one.
|
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 |
withExternalId(String externalId)
The external ID of the hierarchy, if it has one.
|
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 void setExternalId(String externalId)
The external ID of the hierarchy, if it has one. When you update an asset hierarchy, you may assign an external ID if it doesn't already have one. You can't change the external ID of an asset hierarchy that already has one. For more information, see Using external IDs in the IoT SiteWise User Guide.
externalId
- The external ID of the hierarchy, if it has one. When you update an asset hierarchy, you may assign an
external ID if it doesn't already have one. You can't change the external ID of an asset hierarchy that
already has one. For more information, see Using
external IDs in the IoT SiteWise User Guide.public String getExternalId()
The external ID of the hierarchy, if it has one. When you update an asset hierarchy, you may assign an external ID if it doesn't already have one. You can't change the external ID of an asset hierarchy that already has one. For more information, see Using external IDs in the IoT SiteWise User Guide.
public AssetHierarchy withExternalId(String externalId)
The external ID of the hierarchy, if it has one. When you update an asset hierarchy, you may assign an external ID if it doesn't already have one. You can't change the external ID of an asset hierarchy that already has one. For more information, see Using external IDs in the IoT SiteWise User Guide.
externalId
- The external ID of the hierarchy, if it has one. When you update an asset hierarchy, you may assign an
external ID if it doesn't already have one. You can't change the external ID of an asset hierarchy that
already has one. For more information, see Using
external IDs in the IoT SiteWise User Guide.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.