@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getPolicyArn()
The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.
|
String |
getPolicyDocument()
The JSON policy document that you want to use as the content for this new version of the policy.
|
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)
The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.
|
void |
setPolicyDocument(String policyDocument)
The JSON policy document that you want to use as the content for this new version of the policy.
|
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)
The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.
|
CreatePolicyVersionRequest |
withPolicyDocument(String policyDocument)
The JSON policy document that you want to use as the content for this new version of the policy.
|
CreatePolicyVersionRequest |
withSetAsDefault(Boolean setAsDefault)
Specifies whether to set this version as the policy's default version.
|
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 setPolicyArn(String policyArn)
The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
policyArn
- The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public String getPolicyArn()
The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public CreatePolicyVersionRequest withPolicyArn(String policyArn)
The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
policyArn
- The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public void setPolicyDocument(String policyDocument)
The JSON policy document that you want to use as the content for this new version of the policy.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character ( ) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through ÿ). It also includes the special characters tab ( ), line feed ( ), and carriage return ( ).
policyDocument
- The JSON policy document that you want to use as the content for this new version of the policy.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character ( ) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through ÿ). It also includes the special characters tab ( ), line feed ( ), and carriage return ( ).
public String getPolicyDocument()
The JSON policy document that you want to use as the content for this new version of the policy.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character ( ) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through ÿ). It also includes the special characters tab ( ), line feed ( ), and carriage return ( ).
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character ( ) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through ÿ). It also includes the special characters tab ( ), line feed ( ), and carriage return ( ).
public CreatePolicyVersionRequest withPolicyDocument(String policyDocument)
The JSON policy document that you want to use as the content for this new version of the policy.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character ( ) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through ÿ). It also includes the special characters tab ( ), line feed ( ), and carriage return ( ).
policyDocument
- The JSON policy document that you want to use as the content for this new version of the policy.
The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character ( ) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through ÿ). It also includes the special characters tab ( ), line feed ( ), and carriage return ( ).
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 Object
Object.toString()
public CreatePolicyVersionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.