public class CreatePolicyVersionRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
policyArn
The Amazon Resource Name (ARN) of the IAM policy to which you want to add
a new version.
|
private java.lang.String |
policyDocument
The JSON policy document that you want to use as the content for this new
version of the policy.
|
private java.lang.Boolean |
setAsDefault
Specifies whether to set this version as the policy's default version.
|
NOOP
Constructor and Description |
---|
CreatePolicyVersionRequest() |
Modifier and Type | Method and Description |
---|---|
CreatePolicyVersionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPolicyArn()
The Amazon Resource Name (ARN) of the IAM policy to which you want to add
a new version.
|
java.lang.String |
getPolicyDocument()
The JSON policy document that you want to use as the content for this new
version of the policy.
|
java.lang.Boolean |
getSetAsDefault()
Specifies whether to set this version as the policy's default version.
|
int |
hashCode() |
java.lang.Boolean |
isSetAsDefault()
Specifies whether to set this version as the policy's default version.
|
void |
setPolicyArn(java.lang.String policyArn)
The Amazon Resource Name (ARN) of the IAM policy to which you want to add
a new version.
|
void |
setPolicyDocument(java.lang.String policyDocument)
The JSON policy document that you want to use as the content for this new
version of the policy.
|
void |
setSetAsDefault(java.lang.Boolean setAsDefault)
Specifies whether to set this version as the policy's default version.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreatePolicyVersionRequest |
withPolicyArn(java.lang.String policyArn)
The Amazon Resource Name (ARN) of the IAM policy to which you want to add
a new version.
|
CreatePolicyVersionRequest |
withPolicyDocument(java.lang.String policyDocument)
The JSON policy document that you want to use as the content for this new
version of the policy.
|
CreatePolicyVersionRequest |
withSetAsDefault(java.lang.Boolean setAsDefault)
Specifies whether to set this version as the policy's default version.
|
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
private java.lang.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.
private java.lang.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 ( ).
private java.lang.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.
public void setPolicyArn(java.lang.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 java.lang.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(java.lang.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(java.lang.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 ( ).
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 ( ).
public java.lang.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 ( ).
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 ( ).
public CreatePolicyVersionRequest withPolicyDocument(java.lang.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 ( ).
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 ( ).
public void setSetAsDefault(java.lang.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 java.lang.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(java.lang.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 java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreatePolicyVersionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()