public class CreatePolicyVersionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CreatePolicyVersionRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreatePolicyVersionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getPolicyArn() |
String |
getPolicyDocument()
The policy document.
|
Boolean |
getSetAsDefault()
Specifies whether to set this version as the policy's default version.
|
int |
hashCode() |
Boolean |
isSetAsDefault()
Specifies whether to set this version as the policy's default version.
|
void |
setPolicyArn(String policyArn) |
void |
setPolicyDocument(String policyDocument)
The policy document.
|
void |
setSetAsDefault(Boolean setAsDefault)
Specifies whether to set this version as the policy's default version.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreatePolicyVersionRequest |
withPolicyArn(String policyArn) |
CreatePolicyVersionRequest |
withPolicyDocument(String policyDocument)
The policy document.
|
CreatePolicyVersionRequest |
withSetAsDefault(Boolean setAsDefault)
Specifies whether to set this version as the policy's default version.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setPolicyArn(String policyArn)
policyArn - public String getPolicyArn()
public CreatePolicyVersionRequest withPolicyArn(String policyArn)
policyArn - public void setPolicyDocument(String policyDocument)
The policy document.
policyDocument - The policy document.public String getPolicyDocument()
The policy document.
public CreatePolicyVersionRequest withPolicyDocument(String policyDocument)
The policy document.
policyDocument - The policy document.public void setSetAsDefault(Boolean setAsDefault)
Specifies whether to set this version as the policy's default version.
When this parameter is true, the new policy version becomes
the operative version; that is, the version that is in effect for the IAM
users, groups, and roles that the policy is attached to.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
setAsDefault - Specifies whether to set this version as the policy's default
version.
When this parameter is true, the new policy version
becomes the operative version; that is, the version that is in
effect for the IAM users, groups, and roles that the policy is
attached to.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
public Boolean getSetAsDefault()
Specifies whether to set this version as the policy's default version.
When this parameter is true, the new policy version becomes
the operative version; that is, the version that is in effect for the IAM
users, groups, and roles that the policy is attached to.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
When this parameter is true, the new policy version
becomes the operative version; that is, the version that is in
effect for the IAM users, groups, and roles that the policy is
attached to.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
public CreatePolicyVersionRequest withSetAsDefault(Boolean setAsDefault)
Specifies whether to set this version as the policy's default version.
When this parameter is true, the new policy version becomes
the operative version; that is, the version that is in effect for the IAM
users, groups, and roles that the policy is attached to.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
setAsDefault - Specifies whether to set this version as the policy's default
version.
When this parameter is true, the new policy version
becomes the operative version; that is, the version that is in
effect for the IAM users, groups, and roles that the policy is
attached to.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
public Boolean isSetAsDefault()
Specifies whether to set this version as the policy's default version.
When this parameter is true, the new policy version becomes
the operative version; that is, the version that is in effect for the IAM
users, groups, and roles that the policy is attached to.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
When this parameter is true, the new policy version
becomes the operative version; that is, the version that is in
effect for the IAM users, groups, and roles that the policy is
attached to.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
public String toString()
toString in class ObjectObject.toString()public CreatePolicyVersionRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.