@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssetModelHierarchyDefinition extends Object implements Serializable, Cloneable, StructuredPojo
Contains an asset model hierarchy used in asset model creation. An asset model hierarchy determines the kind (or type) of asset that can belong to a hierarchy.
Constructor and Description |
---|
AssetModelHierarchyDefinition() |
Modifier and Type | Method and Description |
---|---|
AssetModelHierarchyDefinition |
clone() |
boolean |
equals(Object obj) |
String |
getChildAssetModelId()
The ID of an asset model for this hierarchy.
|
String |
getExternalId()
An external ID to assign to the asset model hierarchy.
|
String |
getId()
The ID to assign to the asset model hierarchy, if desired.
|
String |
getName()
The name of the asset model hierarchy definition (as specified in 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 an asset model for this hierarchy.
|
void |
setExternalId(String externalId)
An external ID to assign to the asset model hierarchy.
|
void |
setId(String id)
The ID to assign to the asset model hierarchy, if desired.
|
void |
setName(String name)
The name of the asset model hierarchy definition (as specified in the CreateAssetModel or UpdateAssetModel API operation).
|
String |
toString()
Returns a string representation of this object.
|
AssetModelHierarchyDefinition |
withChildAssetModelId(String childAssetModelId)
The ID of an asset model for this hierarchy.
|
AssetModelHierarchyDefinition |
withExternalId(String externalId)
An external ID to assign to the asset model hierarchy.
|
AssetModelHierarchyDefinition |
withId(String id)
The ID to assign to the asset model hierarchy, if desired.
|
AssetModelHierarchyDefinition |
withName(String name)
The name of the asset model hierarchy definition (as specified in the CreateAssetModel or UpdateAssetModel API operation).
|
public void setName(String name)
The name of the asset model hierarchy definition (as specified in the CreateAssetModel or UpdateAssetModel API operation).
name
- The name of the asset model hierarchy definition (as specified in the CreateAssetModel or UpdateAssetModel API operation).public String getName()
The name of the asset model hierarchy definition (as specified in the CreateAssetModel or UpdateAssetModel API operation).
public AssetModelHierarchyDefinition withName(String name)
The name of the asset model hierarchy definition (as specified in the CreateAssetModel or UpdateAssetModel API operation).
name
- The name of the asset model hierarchy definition (as specified in the CreateAssetModel or UpdateAssetModel API operation).public void setChildAssetModelId(String childAssetModelId)
The ID of an asset model for this hierarchy. This can be either the actual ID in UUID format, or else
externalId:
followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.
childAssetModelId
- The ID of an asset model for this hierarchy. This can be either the actual ID in UUID format, or else
externalId:
followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.public String getChildAssetModelId()
The ID of an asset model for this hierarchy. This can be either the actual ID in UUID format, or else
externalId:
followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.
externalId:
followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.public AssetModelHierarchyDefinition withChildAssetModelId(String childAssetModelId)
The ID of an asset model for this hierarchy. This can be either the actual ID in UUID format, or else
externalId:
followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.
childAssetModelId
- The ID of an asset model for this hierarchy. This can be either the actual ID in UUID format, or else
externalId:
followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.public void setId(String id)
The ID to assign to the asset model hierarchy, 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 asset model hierarchy, 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 asset model hierarchy, 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 AssetModelHierarchyDefinition withId(String id)
The ID to assign to the asset model hierarchy, 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 asset model hierarchy, 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 asset model hierarchy. The external ID must be unique among asset model hierarchies 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 asset model hierarchy. The external ID must be unique among asset model
hierarchies 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 asset model hierarchy. The external ID must be unique among asset model hierarchies within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.
public AssetModelHierarchyDefinition withExternalId(String externalId)
An external ID to assign to the asset model hierarchy. The external ID must be unique among asset model hierarchies 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 asset model hierarchy. The external ID must be unique among asset model
hierarchies 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 AssetModelHierarchyDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.