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 AddTagsToResourceRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetResourceArn()The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.List<Tag>getTagList()One or more tags.inthashCode()voidsetResourceArn(String resourceArn)The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.voidsetTagList(Collection<Tag> tagList)One or more tags.StringtoString()Returns a string representation of this object; useful for testing and debugging.AddTagsToResourceRequestwithResourceArn(String resourceArn)The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.AddTagsToResourceRequestwithTagList(Tag... tagList)One or more tags.AddTagsToResourceRequestwithTagList(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AddTagsToResourceRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-