Class CreatePolicyVersionRequest

    • Constructor Detail

      • CreatePolicyVersionRequest

        public CreatePolicyVersionRequest()
    • Method Detail

      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object