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:
  • Constructor Details

    • CreatePolicyVersionRequest

      public CreatePolicyVersionRequest()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: