public class SetTagsForResourceRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
resourceArn
The ARN of the assessment template that you want to set tags to.
|
private java.util.List<Tag> |
tags
A collection of key and value pairs that you want to set to the
assessment template.
|
NOOP
Constructor and Description |
---|
SetTagsForResourceRequest() |
Modifier and Type | Method and Description |
---|---|
SetTagsForResourceRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getResourceArn()
The ARN of the assessment template that you want to set tags to.
|
java.util.List<Tag> |
getTags()
A collection of key and value pairs that you want to set to the
assessment template.
|
int |
hashCode() |
void |
setResourceArn(java.lang.String resourceArn)
The ARN of the assessment template that you want to set tags to.
|
void |
setTags(java.util.Collection<Tag> tags)
A collection of key and value pairs that you want to set to the
assessment template.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetTagsForResourceRequest |
withResourceArn(java.lang.String resourceArn)
The ARN of the assessment template that you want to set tags to.
|
SetTagsForResourceRequest |
withTags(java.util.Collection<Tag> tags)
A collection of key and value pairs that you want to set to the
assessment template.
|
SetTagsForResourceRequest |
withTags(Tag... tags)
A collection of key and value pairs that you want to set to the
assessment template.
|
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
private java.lang.String resourceArn
The ARN of the assessment template that you want to set tags to.
private java.util.List<Tag> tags
A collection of key and value pairs that you want to set to the assessment template.
public void setResourceArn(java.lang.String resourceArn)
The ARN of the assessment template that you want to set tags to.
resourceArn
- The ARN of the assessment template that you want to set tags to.public java.lang.String getResourceArn()
The ARN of the assessment template that you want to set tags to.
public SetTagsForResourceRequest withResourceArn(java.lang.String resourceArn)
The ARN of the assessment template that you want to set tags to.
resourceArn
- The ARN of the assessment template that you want to set tags to.public java.util.List<Tag> getTags()
A collection of key and value pairs that you want to set to the assessment template.
public void setTags(java.util.Collection<Tag> tags)
A collection of key and value pairs that you want to set to the assessment template.
tags
- A collection of key and value pairs that you want to set to the
assessment template.public SetTagsForResourceRequest withTags(Tag... tags)
A collection of key and value pairs that you want to set to the assessment template.
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection)
or
withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A collection of key and value pairs that you want to set to the
assessment template.public SetTagsForResourceRequest withTags(java.util.Collection<Tag> tags)
A collection of key and value pairs that you want to set to the assessment template.
tags
- A collection of key and value pairs that you want to set to the
assessment template.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SetTagsForResourceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()