Class AddTagsToResourceRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.cloudhsm.model.AddTagsToResourceRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class AddTagsToResourceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description AddTagsToResourceRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddTagsToResourceRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getResourceArn()
The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.List<Tag>
getTagList()
One or more tags.int
hashCode()
void
setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.void
setTagList(Collection<Tag> tagList)
One or more tags.String
toString()
Returns a string representation of this object; useful for testing and debugging.AddTagsToResourceRequest
withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.AddTagsToResourceRequest
withTagList(Tag... tagList)
One or more tags.AddTagsToResourceRequest
withTagList(Collection<Tag> tagList)
One or more tags.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setResourceArn
public void setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.
- Parameters:
resourceArn
- The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.
-
getResourceArn
public String getResourceArn()
The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.
- Returns:
- The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.
-
withResourceArn
public AddTagsToResourceRequest withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.
- Parameters:
resourceArn
- The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTagList
public void setTagList(Collection<Tag> tagList)
One or more tags.
- Parameters:
tagList
- One or more tags.
-
withTagList
public AddTagsToResourceRequest withTagList(Tag... tagList)
One or more tags.
NOTE: This method appends the values to the existing list (if any). Use
setTagList(java.util.Collection)
orwithTagList(java.util.Collection)
if you want to override the existing values.- Parameters:
tagList
- One or more tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTagList
public AddTagsToResourceRequest withTagList(Collection<Tag> tagList)
One or more tags.
- Parameters:
tagList
- One or more tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AddTagsToResourceRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-