Class CreatePolicyResult

java.lang.Object
com.amazonaws.services.iot.model.CreatePolicyResult
All Implemented Interfaces:
Serializable, Cloneable

public class CreatePolicyResult extends Object implements Serializable, Cloneable

The output from the CreatePolicy operation.

See Also:
  • Constructor Details

    • CreatePolicyResult

      public CreatePolicyResult()
  • Method Details

    • setPolicyName

      public void setPolicyName(String policyName)

      The policy name.

      Parameters:
      policyName - The policy name.
    • getPolicyName

      public String getPolicyName()

      The policy name.

      Returns:
      The policy name.
    • withPolicyName

      public CreatePolicyResult withPolicyName(String policyName)

      The policy name.

      Parameters:
      policyName - The policy name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setPolicyArn

      public void setPolicyArn(String policyArn)

      The policy ARN.

      Parameters:
      policyArn - The policy ARN.
    • getPolicyArn

      public String getPolicyArn()

      The policy ARN.

      Returns:
      The policy ARN.
    • withPolicyArn

      public CreatePolicyResult withPolicyArn(String policyArn)

      The policy ARN.

      Parameters:
      policyArn - The policy ARN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setPolicyDocument

      public void setPolicyDocument(String policyDocument)

      The JSON document that describes the policy.

      Parameters:
      policyDocument - The JSON document that describes the policy.
    • getPolicyDocument

      public String getPolicyDocument()

      The JSON document that describes the policy.

      Returns:
      The JSON document that describes the policy.
    • withPolicyDocument

      public CreatePolicyResult withPolicyDocument(String policyDocument)

      The JSON document that describes the policy.

      Parameters:
      policyDocument - The JSON document that describes the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setPolicyVersionId

      public void setPolicyVersionId(String policyVersionId)

      The policy version ID.

      Parameters:
      policyVersionId - The policy version ID.
    • getPolicyVersionId

      public String getPolicyVersionId()

      The policy version ID.

      Returns:
      The policy version ID.
    • withPolicyVersionId

      public CreatePolicyResult withPolicyVersionId(String policyVersionId)

      The policy version ID.

      Parameters:
      policyVersionId - The policy version ID.
      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:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public CreatePolicyResult clone()
      Overrides:
      clone in class Object