Class PutIdentityPolicyRequest

    • Constructor Detail

      • PutIdentityPolicyRequest

        public PutIdentityPolicyRequest()
    • Method Detail

      • setIdentity

        public void setIdentity​(String identity)

        The identity to which the policy will apply. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

        To successfully call this API, you must own the identity.

        Parameters:
        identity - The identity to which the policy will apply. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com .

        To successfully call this API, you must own the identity.

      • getIdentity

        public String getIdentity()

        The identity to which the policy will apply. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

        To successfully call this API, you must own the identity.

        Returns:
        The identity to which the policy will apply. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com .

        To successfully call this API, you must own the identity.

      • withIdentity

        public PutIdentityPolicyRequest withIdentity​(String identity)

        The identity to which the policy will apply. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

        To successfully call this API, you must own the identity.

        Parameters:
        identity - The identity to which the policy will apply. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com .

        To successfully call this API, you must own the identity.

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

        public void setPolicyName​(String policyName)

        The name of the policy.

        The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.

        Parameters:
        policyName - The name of the policy.

        The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.

      • getPolicyName

        public String getPolicyName()

        The name of the policy.

        The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.

        Returns:
        The name of the policy.

        The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.

      • withPolicyName

        public PutIdentityPolicyRequest withPolicyName​(String policyName)

        The name of the policy.

        The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.

        Parameters:
        policyName - The name of the policy.

        The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.

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

        public void setPolicy​(String policy)

        The text of the policy in JSON format. The policy cannot exceed 4 KB.

        For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.

        Parameters:
        policy - The text of the policy in JSON format. The policy cannot exceed 4 KB.

        For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.

      • getPolicy

        public String getPolicy()

        The text of the policy in JSON format. The policy cannot exceed 4 KB.

        For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.

        Returns:
        The text of the policy in JSON format. The policy cannot exceed 4 KB.

        For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.

      • withPolicy

        public PutIdentityPolicyRequest withPolicy​(String policy)

        The text of the policy in JSON format. The policy cannot exceed 4 KB.

        For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.

        Parameters:
        policy - The text of the policy in JSON format. The policy cannot exceed 4 KB.

        For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.

        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