@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdatePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdatePolicyRequest() |
Modifier and Type | Method and Description |
---|---|
UpdatePolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getContent()
If provided, the new content for the policy.
|
String |
getDescription()
If provided, the new description for the policy.
|
String |
getName()
If provided, the new name for the policy.
|
String |
getPolicyId()
The unique identifier (ID) of the policy that you want to update.
|
int |
hashCode() |
void |
setContent(String content)
If provided, the new content for the policy.
|
void |
setDescription(String description)
If provided, the new description for the policy.
|
void |
setName(String name)
If provided, the new name for the policy.
|
void |
setPolicyId(String policyId)
The unique identifier (ID) of the policy that you want to update.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
UpdatePolicyRequest |
withContent(String content)
If provided, the new content for the policy.
|
UpdatePolicyRequest |
withDescription(String description)
If provided, the new description for the policy.
|
UpdatePolicyRequest |
withName(String name)
If provided, the new name for the policy.
|
UpdatePolicyRequest |
withPolicyId(String policyId)
The unique identifier (ID) of the policy that you want to update.
|
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 setPolicyId(String policyId)
The unique identifier (ID) of the policy that you want to update.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
policyId
- The unique identifier (ID) of the policy that you want to update.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
public String getPolicyId()
The unique identifier (ID) of the policy that you want to update.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
public UpdatePolicyRequest withPolicyId(String policyId)
The unique identifier (ID) of the policy that you want to update.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
policyId
- The unique identifier (ID) of the policy that you want to update.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lower-case letters or digits.
public void setName(String name)
If provided, the new name for the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
name
- If provided, the new name for the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public String getName()
If provided, the new name for the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public UpdatePolicyRequest withName(String name)
If provided, the new name for the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
name
- If provided, the new name for the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public void setDescription(String description)
If provided, the new description for the policy.
description
- If provided, the new description for the policy.public String getDescription()
If provided, the new description for the policy.
public UpdatePolicyRequest withDescription(String description)
If provided, the new description for the policy.
description
- If provided, the new description for the policy.public void setContent(String content)
If provided, the new content for the policy. The text must be correctly formatted JSON that complies with the syntax for the policy's type. For more information, see Service Control Policy Syntax in the AWS Organizations User Guide.
content
- If provided, the new content for the policy. The text must be correctly formatted JSON that complies with
the syntax for the policy's type. For more information, see Service
Control Policy Syntax in the AWS Organizations User Guide.public String getContent()
If provided, the new content for the policy. The text must be correctly formatted JSON that complies with the syntax for the policy's type. For more information, see Service Control Policy Syntax in the AWS Organizations User Guide.
public UpdatePolicyRequest withContent(String content)
If provided, the new content for the policy. The text must be correctly formatted JSON that complies with the syntax for the policy's type. For more information, see Service Control Policy Syntax in the AWS Organizations User Guide.
content
- If provided, the new content for the policy. The text must be correctly formatted JSON that complies with
the syntax for the policy's type. For more information, see Service
Control Policy Syntax in the AWS Organizations User Guide.public String toString()
toString
in class Object
Object.toString()
public UpdatePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.