Class CreatePolicyVersionRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.The JSON policy document that you want to use as the content for this new version of the policy.Specifies whether to set this version as the policy's default version.int
hashCode()
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.toString()
Returns a string representation of this object; useful for testing and debugging.withPolicyArn
(String policyArn) The Amazon Resource Name (ARN) of the IAM policy to which you want to add a new version.withPolicyDocument
(String policyDocument) The JSON policy document that you want to use as the content for this new version of the policy.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
-
Constructor Details
-
CreatePolicyVersionRequest
public CreatePolicyVersionRequest()
-
-
Method Details
-
setPolicyArn
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
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
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
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
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
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
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
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:
-