@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, in UUID format.
|
String |
getExternalId()
The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel operation.
|
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, in UUID format.
|
void |
setExternalId(String externalId)
The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel operation.
|
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, in UUID format.
|
AssetModelHierarchy |
withExternalId(String externalId)
The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel operation.
|
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
.
If you are callling UpdateAssetModel to create a new hierarchy: You can specify its ID here, 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.
If you are calling UpdateAssetModel to modify an existing 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.
id
- The ID of the asset model hierarchy. This ID is a hierarchyId
.
If you are callling UpdateAssetModel to create a new hierarchy: You can specify its ID here, 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.
If you are calling UpdateAssetModel to modify an existing 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 getId()
The ID of the asset model hierarchy. This ID is a hierarchyId
.
If you are callling UpdateAssetModel to create a new hierarchy: You can specify its ID here, 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.
If you are calling UpdateAssetModel to modify an existing 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.
hierarchyId
.
If you are callling UpdateAssetModel to create a new hierarchy: You can specify its ID here, 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.
If you are calling UpdateAssetModel to modify an existing 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 AssetModelHierarchy withId(String id)
The ID of the asset model hierarchy. This ID is a hierarchyId
.
If you are callling UpdateAssetModel to create a new hierarchy: You can specify its ID here, 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.
If you are calling UpdateAssetModel to modify an existing 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.
id
- The ID of the asset model hierarchy. This ID is a hierarchyId
.
If you are callling UpdateAssetModel to create a new hierarchy: You can specify its ID here, 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.
If you are calling UpdateAssetModel to modify an existing 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 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, in UUID format. All assets in this hierarchy must be instances of the
childAssetModelId
asset model. IoT SiteWise will always return the actual asset model ID for this
value. However, when you are specifying this value as part of a call to UpdateAssetModel, you may provide either the asset model ID or else externalId:
followed by the
asset model's external ID. For more information, see Using external
IDs in the IoT SiteWise User Guide.
childAssetModelId
- The ID of the asset model, in UUID format. All assets in this hierarchy must be instances of the
childAssetModelId
asset model. IoT SiteWise will always return the actual asset model ID for
this value. However, when you are specifying this value as part of a call to UpdateAssetModel, you may provide either the asset model ID or else externalId:
followed
by the asset model's external ID. For more information, see Using
external IDs in the IoT SiteWise User Guide.public String getChildAssetModelId()
The ID of the asset model, in UUID format. All assets in this hierarchy must be instances of the
childAssetModelId
asset model. IoT SiteWise will always return the actual asset model ID for this
value. However, when you are specifying this value as part of a call to UpdateAssetModel, you may provide either the asset model ID or else externalId:
followed by the
asset model's external ID. For more information, see Using external
IDs in the IoT SiteWise User Guide.
childAssetModelId
asset model. IoT SiteWise will always return the actual asset model ID for
this value. However, when you are specifying this value as part of a call to UpdateAssetModel, you may provide either the asset model ID or else externalId:
followed by the asset model's external ID. For more information, see Using
external IDs in the IoT SiteWise User Guide.public AssetModelHierarchy withChildAssetModelId(String childAssetModelId)
The ID of the asset model, in UUID format. All assets in this hierarchy must be instances of the
childAssetModelId
asset model. IoT SiteWise will always return the actual asset model ID for this
value. However, when you are specifying this value as part of a call to UpdateAssetModel, you may provide either the asset model ID or else externalId:
followed by the
asset model's external ID. For more information, see Using external
IDs in the IoT SiteWise User Guide.
childAssetModelId
- The ID of the asset model, in UUID format. All assets in this hierarchy must be instances of the
childAssetModelId
asset model. IoT SiteWise will always return the actual asset model ID for
this value. However, when you are specifying this value as part of a call to UpdateAssetModel, you may provide either the asset model ID or else externalId:
followed
by the asset model's external ID. For more information, see Using
external IDs in the IoT SiteWise User Guide.public void setExternalId(String externalId)
The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel operation. You can assign an external ID by specifying this value as part of a call to UpdateAssetModel. However, you can't change the external ID if one is already assigned. For more information, see Using external IDs in the IoT SiteWise User Guide.
externalId
- The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel operation. You can assign an external ID by specifying this value as part of a call
to
UpdateAssetModel. However, you can't change the external ID if one is already assigned. For more
information, see Using
external IDs in the IoT SiteWise User Guide.public String getExternalId()
The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel operation. You can assign an external ID by specifying this value as part of a call to UpdateAssetModel. However, you can't change the external ID if one is already assigned. For more information, see Using external IDs in the IoT SiteWise User Guide.
public AssetModelHierarchy withExternalId(String externalId)
The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel operation. You can assign an external ID by specifying this value as part of a call to UpdateAssetModel. However, you can't change the external ID if one is already assigned. For more information, see Using external IDs in the IoT SiteWise User Guide.
externalId
- The external ID (if any) provided in the CreateAssetModel or UpdateAssetModel operation. You can assign an external ID by specifying this value as part of a call
to
UpdateAssetModel. However, you can't change the external ID if one is already assigned. For more
information, see Using
external IDs in the IoT SiteWise User Guide.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.