@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateAssetRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateAssetRequest() |
Modifier and Type | Method and Description |
---|---|
CreateAssetRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateAssetRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateAssetRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAssetDescription()
A description for the asset.
|
String |
getAssetExternalId()
An external ID to assign to the asset.
|
String |
getAssetId()
The ID to assign to the asset, if desired.
|
String |
getAssetModelId()
The ID of the asset model from which to create the asset.
|
String |
getAssetName()
A friendly name for the asset.
|
String |
getClientToken()
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.
|
Map<String,String> |
getTags()
A list of key-value pairs that contain metadata for the asset.
|
int |
hashCode() |
void |
setAssetDescription(String assetDescription)
A description for the asset.
|
void |
setAssetExternalId(String assetExternalId)
An external ID to assign to the asset.
|
void |
setAssetId(String assetId)
The ID to assign to the asset, if desired.
|
void |
setAssetModelId(String assetModelId)
The ID of the asset model from which to create the asset.
|
void |
setAssetName(String assetName)
A friendly name for the asset.
|
void |
setClientToken(String clientToken)
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.
|
void |
setTags(Map<String,String> tags)
A list of key-value pairs that contain metadata for the asset.
|
String |
toString()
Returns a string representation of this object.
|
CreateAssetRequest |
withAssetDescription(String assetDescription)
A description for the asset.
|
CreateAssetRequest |
withAssetExternalId(String assetExternalId)
An external ID to assign to the asset.
|
CreateAssetRequest |
withAssetId(String assetId)
The ID to assign to the asset, if desired.
|
CreateAssetRequest |
withAssetModelId(String assetModelId)
The ID of the asset model from which to create the asset.
|
CreateAssetRequest |
withAssetName(String assetName)
A friendly name for the asset.
|
CreateAssetRequest |
withClientToken(String clientToken)
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.
|
CreateAssetRequest |
withTags(Map<String,String> tags)
A list of key-value pairs that contain metadata for the asset.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAssetName(String assetName)
A friendly name for the asset.
assetName
- A friendly name for the asset.public String getAssetName()
A friendly name for the asset.
public CreateAssetRequest withAssetName(String assetName)
A friendly name for the asset.
assetName
- A friendly name for the asset.public void setAssetModelId(String assetModelId)
The ID of the asset model from which to create the asset. 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.
assetModelId
- The ID of the asset model from which to create the asset. 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 getAssetModelId()
The ID of the asset model from which to create the asset. 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 CreateAssetRequest withAssetModelId(String assetModelId)
The ID of the asset model from which to create the asset. 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.
assetModelId
- The ID of the asset model from which to create the asset. 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 setClientToken(String clientToken)
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
clientToken
- A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't
reuse this client token if a new idempotent request is required.public String getClientToken()
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
public CreateAssetRequest withClientToken(String clientToken)
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
clientToken
- A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't
reuse this client token if a new idempotent request is required.public Map<String,String> getTags()
A list of key-value pairs that contain metadata for the asset. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide.
public void setTags(Map<String,String> tags)
A list of key-value pairs that contain metadata for the asset. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide.
tags
- A list of key-value pairs that contain metadata for the asset. For more information, see Tagging your IoT
SiteWise resources in the IoT SiteWise User Guide.public CreateAssetRequest withTags(Map<String,String> tags)
A list of key-value pairs that contain metadata for the asset. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide.
tags
- A list of key-value pairs that contain metadata for the asset. For more information, see Tagging your IoT
SiteWise resources in the IoT SiteWise User Guide.public CreateAssetRequest addTagsEntry(String key, String value)
public CreateAssetRequest clearTagsEntries()
public void setAssetDescription(String assetDescription)
A description for the asset.
assetDescription
- A description for the asset.public String getAssetDescription()
A description for the asset.
public CreateAssetRequest withAssetDescription(String assetDescription)
A description for the asset.
assetDescription
- A description for the asset.public void setAssetId(String assetId)
The ID to assign to the asset, 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.
assetId
- The ID to assign to the asset, 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 getAssetId()
The ID to assign to the asset, 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 CreateAssetRequest withAssetId(String assetId)
The ID to assign to the asset, 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.
assetId
- The ID to assign to the asset, 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 setAssetExternalId(String assetExternalId)
An external ID to assign to the asset. The external ID must be unique within your Amazon Web Services account. For more information, see Using external IDs in the IoT SiteWise User Guide.
assetExternalId
- An external ID to assign to the asset. The external ID must be unique within your Amazon Web Services
account. For more information, see Using
external IDs in the IoT SiteWise User Guide.public String getAssetExternalId()
An external ID to assign to the asset. The external ID must be unique within your Amazon Web Services account. For more information, see Using external IDs in the IoT SiteWise User Guide.
public CreateAssetRequest withAssetExternalId(String assetExternalId)
An external ID to assign to the asset. The external ID must be unique within your Amazon Web Services account. For more information, see Using external IDs in the IoT SiteWise User Guide.
assetExternalId
- An external ID to assign to the asset. The external ID must be unique within your Amazon Web Services
account. For more information, see Using
external IDs in the IoT SiteWise User Guide.public String toString()
toString
in class Object
Object.toString()
public CreateAssetRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()