Class CreatePolicyVersionRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.identitymanagement.model.CreatePolicyVersionRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class CreatePolicyVersionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreatePolicyVersionRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreatePolicyVersionRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetPolicyArn()The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.StringgetPolicyDocument()The JSON policy document that you want to use as the content for this new version of the policy.BooleangetSetAsDefault()Specifies whether to set this version as the policy's default version.inthashCode()BooleanisSetAsDefault()Specifies whether to set this version as the policy's default version.voidsetPolicyArn(String policyArn)The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.voidsetPolicyDocument(String policyDocument)The JSON policy document that you want to use as the content for this new version of the policy.voidsetSetAsDefault(Boolean setAsDefault)Specifies whether to set this version as the policy's default version.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreatePolicyVersionRequestwithPolicyArn(String policyArn)The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.CreatePolicyVersionRequestwithPolicyDocument(String policyDocument)The JSON policy document that you want to use as the content for this new version of the policy.CreatePolicyVersionRequestwithSetAsDefault(Boolean setAsDefault)Specifies whether to set this version as the policy's default version.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
setPolicyArn
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.
- Parameters:
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.
-
getPolicyArn
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.
- Returns:
- 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.
-
withPolicyArn
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPolicyDocument
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 for 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 (ÿ). It also includes the special characters tab ( ), line feed ( ), and carriage return ( ).
- Parameters:
policyDocument- The JSON policy document that you want to use as the content for this new version of the policy.The regex pattern for 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 (ÿ). It also includes the special characters tab ( ), line feed ( ), and carriage return ( ).
-
getPolicyDocument
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 for 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 (ÿ). It also includes the special characters tab ( ), line feed ( ), and carriage return ( ).
- Returns:
- The JSON policy document that you want to use as the content for
this new version of the policy.
The regex pattern for 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 (ÿ). It also includes the special characters tab ( ), line feed ( ), and carriage return ( ).
-
withPolicyDocument
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 for 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 (ÿ). It also includes the special characters tab ( ), line feed ( ), and carriage return ( ).
- Parameters:
policyDocument- The JSON policy document that you want to use as the content for this new version of the policy.The regex pattern for 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 (ÿ). It also includes the special characters tab ( ), line feed ( ), and carriage return ( ).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSetAsDefault
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.
- Parameters:
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.
-
getSetAsDefault
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.
- Returns:
- 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.
-
withSetAsDefault
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isSetAsDefault
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.
- Returns:
- 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.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreatePolicyVersionRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-