Class Policy

    • Constructor Detail

      • Policy

        public Policy()
    • Method Detail

      • setPolicyName

        public void setPolicyName​(String policyName)

        The friendly name (not ARN) identifying the policy.

        Parameters:
        policyName - The friendly name (not ARN) identifying the policy.
      • getPolicyName

        public String getPolicyName()

        The friendly name (not ARN) identifying the policy.

        Returns:
        The friendly name (not ARN) identifying the policy.
      • withPolicyName

        public Policy withPolicyName​(String policyName)

        The friendly name (not ARN) identifying the policy.

        Parameters:
        policyName - The friendly name (not ARN) identifying the policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setPolicyId

        public void setPolicyId​(String policyId)

        The stable and unique string identifying the policy.

        For more information about IDs, see IAM Identifiers in the Using IAM guide.

        Parameters:
        policyId - The stable and unique string identifying the policy.

        For more information about IDs, see IAM Identifiers in the Using IAM guide.

      • getPolicyId

        public String getPolicyId()

        The stable and unique string identifying the policy.

        For more information about IDs, see IAM Identifiers in the Using IAM guide.

        Returns:
        The stable and unique string identifying the policy.

        For more information about IDs, see IAM Identifiers in the Using IAM guide.

      • withPolicyId

        public Policy withPolicyId​(String policyId)

        The stable and unique string identifying the policy.

        For more information about IDs, see IAM Identifiers in the Using IAM guide.

        Parameters:
        policyId - The stable and unique string identifying the policy.

        For more information about IDs, see IAM Identifiers in the Using IAM guide.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setArn

        public void setArn​(String arn)
        Parameters:
        arn -
      • getArn

        public String getArn()
        Returns:
      • withArn

        public Policy withArn​(String arn)
        Parameters:
        arn -
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setPath

        public void setPath​(String path)

        The path to the policy.

        For more information about paths, see IAM Identifiers in the Using IAM guide.

        Parameters:
        path - The path to the policy.

        For more information about paths, see IAM Identifiers in the Using IAM guide.

      • getPath

        public String getPath()

        The path to the policy.

        For more information about paths, see IAM Identifiers in the Using IAM guide.

        Returns:
        The path to the policy.

        For more information about paths, see IAM Identifiers in the Using IAM guide.

      • withPath

        public Policy withPath​(String path)

        The path to the policy.

        For more information about paths, see IAM Identifiers in the Using IAM guide.

        Parameters:
        path - The path to the policy.

        For more information about paths, see IAM Identifiers in the Using IAM guide.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDefaultVersionId

        public void setDefaultVersionId​(String defaultVersionId)

        The identifier for the version of the policy that is set as the default version.

        Parameters:
        defaultVersionId - The identifier for the version of the policy that is set as the default version.
      • getDefaultVersionId

        public String getDefaultVersionId()

        The identifier for the version of the policy that is set as the default version.

        Returns:
        The identifier for the version of the policy that is set as the default version.
      • withDefaultVersionId

        public Policy withDefaultVersionId​(String defaultVersionId)

        The identifier for the version of the policy that is set as the default version.

        Parameters:
        defaultVersionId - The identifier for the version of the policy that is set as the default version.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAttachmentCount

        public void setAttachmentCount​(Integer attachmentCount)

        The number of entities (users, groups, and roles) that the policy is attached to.

        Parameters:
        attachmentCount - The number of entities (users, groups, and roles) that the policy is attached to.
      • getAttachmentCount

        public Integer getAttachmentCount()

        The number of entities (users, groups, and roles) that the policy is attached to.

        Returns:
        The number of entities (users, groups, and roles) that the policy is attached to.
      • withAttachmentCount

        public Policy withAttachmentCount​(Integer attachmentCount)

        The number of entities (users, groups, and roles) that the policy is attached to.

        Parameters:
        attachmentCount - The number of entities (users, groups, and roles) that the policy is attached to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setIsAttachable

        public void setIsAttachable​(Boolean isAttachable)

        Specifies whether the policy can be attached to an IAM user, group, or role.

        Parameters:
        isAttachable - Specifies whether the policy can be attached to an IAM user, group, or role.
      • getIsAttachable

        public Boolean getIsAttachable()

        Specifies whether the policy can be attached to an IAM user, group, or role.

        Returns:
        Specifies whether the policy can be attached to an IAM user, group, or role.
      • withIsAttachable

        public Policy withIsAttachable​(Boolean isAttachable)

        Specifies whether the policy can be attached to an IAM user, group, or role.

        Parameters:
        isAttachable - Specifies whether the policy can be attached to an IAM user, group, or role.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isAttachable

        public Boolean isAttachable()

        Specifies whether the policy can be attached to an IAM user, group, or role.

        Returns:
        Specifies whether the policy can be attached to an IAM user, group, or role.
      • setDescription

        public void setDescription​(String description)

        A friendly description of the policy.

        This element is included in the response to the GetPolicy operation. It is not included in the response to the ListPolicies operation.

        Parameters:
        description - A friendly description of the policy.

        This element is included in the response to the GetPolicy operation. It is not included in the response to the ListPolicies operation.

      • getDescription

        public String getDescription()

        A friendly description of the policy.

        This element is included in the response to the GetPolicy operation. It is not included in the response to the ListPolicies operation.

        Returns:
        A friendly description of the policy.

        This element is included in the response to the GetPolicy operation. It is not included in the response to the ListPolicies operation.

      • withDescription

        public Policy withDescription​(String description)

        A friendly description of the policy.

        This element is included in the response to the GetPolicy operation. It is not included in the response to the ListPolicies operation.

        Parameters:
        description - A friendly description of the policy.

        This element is included in the response to the GetPolicy operation. It is not included in the response to the ListPolicies operation.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withCreateDate

        public Policy withCreateDate​(Date createDate)

        The date and time, in ISO 8601 date-time format, when the policy was created.

        Parameters:
        createDate - The date and time, in ISO 8601 date-time format, when the policy was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setUpdateDate

        public void setUpdateDate​(Date updateDate)

        The date and time, in ISO 8601 date-time format, when the policy was last updated.

        When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.

        Parameters:
        updateDate - The date and time, in ISO 8601 date-time format, when the policy was last updated.

        When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.

      • getUpdateDate

        public Date getUpdateDate()

        The date and time, in ISO 8601 date-time format, when the policy was last updated.

        When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.

        Returns:
        The date and time, in ISO 8601 date-time format, when the policy was last updated.

        When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.

      • withUpdateDate

        public Policy withUpdateDate​(Date updateDate)

        The date and time, in ISO 8601 date-time format, when the policy was last updated.

        When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.

        Parameters:
        updateDate - The date and time, in ISO 8601 date-time format, when the policy was last updated.

        When a policy has only one version, this field contains the date and time when the policy was created. When a policy has more than one version, this field contains the date and time when the most recent policy version was created.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • 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