@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutResourcePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
PutResourcePolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
PutResourcePolicyRequest |
clone() |
boolean |
equals(Object obj) |
String |
getContent()
If provided, the new content for the resource policy.
|
List<Tag> |
getTags()
Updates the list of tags that you want to attach to the newly-created resource policy.
|
int |
hashCode() |
void |
setContent(String content)
If provided, the new content for the resource policy.
|
void |
setTags(Collection<Tag> tags)
Updates the list of tags that you want to attach to the newly-created resource policy.
|
String |
toString()
Returns a string representation of this object.
|
PutResourcePolicyRequest |
withContent(String content)
If provided, the new content for the resource policy.
|
PutResourcePolicyRequest |
withTags(Collection<Tag> tags)
Updates the list of tags that you want to attach to the newly-created resource policy.
|
PutResourcePolicyRequest |
withTags(Tag... tags)
Updates the list of tags that you want to attach to the newly-created resource policy.
|
addHandlerContext, copyBaseTo, 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, withSdkRequestTimeoutpublic void setContent(String content)
If provided, the new content for the resource policy. The text must be correctly formatted JSON that complies with the syntax for the resource policy's type. For more information, see Service Control Policy Syntax in the Organizations User Guide.
content - If provided, the new content for the resource policy. The text must be correctly formatted JSON that
complies with the syntax for the resource policy's type. For more information, see Service
Control Policy Syntax in the Organizations User Guide.public String getContent()
If provided, the new content for the resource policy. The text must be correctly formatted JSON that complies with the syntax for the resource policy's type. For more information, see Service Control Policy Syntax in the Organizations User Guide.
public PutResourcePolicyRequest withContent(String content)
If provided, the new content for the resource policy. The text must be correctly formatted JSON that complies with the syntax for the resource policy's type. For more information, see Service Control Policy Syntax in the Organizations User Guide.
content - If provided, the new content for the resource policy. The text must be correctly formatted JSON that
complies with the syntax for the resource policy's type. For more information, see Service
Control Policy Syntax in the Organizations User Guide.public List<Tag> getTags()
Updates the list of tags that you want to attach to the newly-created resource policy. For each tag in the list,
you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to
null. For more information about tagging, see Tagging Organizations
resources in the Organizations User Guide.
Calls with tags apply to the initial creation of the resource policy, otherwise an exception is thrown. If any one of the tags is invalid or if you exceed the allowed number of tags for the resource policy, then the entire request fails and the resource policy is not created.
null. For more information about tagging, see Tagging Organizations
resources in the Organizations User Guide. Calls with tags apply to the initial creation of the resource policy, otherwise an exception is thrown. If any one of the tags is invalid or if you exceed the allowed number of tags for the resource policy, then the entire request fails and the resource policy is not created.
public void setTags(Collection<Tag> tags)
Updates the list of tags that you want to attach to the newly-created resource policy. For each tag in the list,
you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to
null. For more information about tagging, see Tagging Organizations
resources in the Organizations User Guide.
Calls with tags apply to the initial creation of the resource policy, otherwise an exception is thrown. If any one of the tags is invalid or if you exceed the allowed number of tags for the resource policy, then the entire request fails and the resource policy is not created.
tags - Updates the list of tags that you want to attach to the newly-created resource policy. For each tag in the
list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't
set it to null. For more information about tagging, see Tagging Organizations
resources in the Organizations User Guide. Calls with tags apply to the initial creation of the resource policy, otherwise an exception is thrown. If any one of the tags is invalid or if you exceed the allowed number of tags for the resource policy, then the entire request fails and the resource policy is not created.
public PutResourcePolicyRequest withTags(Tag... tags)
Updates the list of tags that you want to attach to the newly-created resource policy. For each tag in the list,
you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to
null. For more information about tagging, see Tagging Organizations
resources in the Organizations User Guide.
Calls with tags apply to the initial creation of the resource policy, otherwise an exception is thrown. If any one of the tags is invalid or if you exceed the allowed number of tags for the resource policy, then the entire request fails and the resource policy is not created.
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 - Updates the list of tags that you want to attach to the newly-created resource policy. For each tag in the
list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't
set it to null. For more information about tagging, see Tagging Organizations
resources in the Organizations User Guide. Calls with tags apply to the initial creation of the resource policy, otherwise an exception is thrown. If any one of the tags is invalid or if you exceed the allowed number of tags for the resource policy, then the entire request fails and the resource policy is not created.
public PutResourcePolicyRequest withTags(Collection<Tag> tags)
Updates the list of tags that you want to attach to the newly-created resource policy. For each tag in the list,
you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to
null. For more information about tagging, see Tagging Organizations
resources in the Organizations User Guide.
Calls with tags apply to the initial creation of the resource policy, otherwise an exception is thrown. If any one of the tags is invalid or if you exceed the allowed number of tags for the resource policy, then the entire request fails and the resource policy is not created.
tags - Updates the list of tags that you want to attach to the newly-created resource policy. For each tag in the
list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't
set it to null. For more information about tagging, see Tagging Organizations
resources in the Organizations User Guide. Calls with tags apply to the initial creation of the resource policy, otherwise an exception is thrown. If any one of the tags is invalid or if you exceed the allowed number of tags for the resource policy, then the entire request fails and the resource policy is not created.
public String toString()
toString in class ObjectObject.toString()public PutResourcePolicyRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2023. All rights reserved.