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 CreatePolicyVersionRequest
clone()
Creates a shallow clone of this request.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.-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreatePolicyVersionRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-