Class CreatePolicyVersionRequest

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

public class CreatePolicyVersionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

The input for the CreatePolicyVersion operation.

See Also:
  • Constructor Details

    • CreatePolicyVersionRequest

      public CreatePolicyVersionRequest()
  • 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 CreatePolicyVersionRequest 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.
    • setPolicyDocument

      public void setPolicyDocument(String policyDocument)

      The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespaces

      Parameters:
      policyDocument - The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespaces
    • getPolicyDocument

      public String getPolicyDocument()

      The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespaces

      Returns:
      The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespaces
    • withPolicyDocument

      public CreatePolicyVersionRequest withPolicyDocument(String policyDocument)

      The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespaces

      Parameters:
      policyDocument - The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespaces
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setSetAsDefault

      public void setSetAsDefault(Boolean setAsDefault)

      Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).

      Parameters:
      setAsDefault - Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).
    • getSetAsDefault

      public Boolean getSetAsDefault()

      Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).

      Returns:
      Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).
    • withSetAsDefault

      public CreatePolicyVersionRequest withSetAsDefault(Boolean setAsDefault)

      Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).

      Parameters:
      setAsDefault - Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isSetAsDefault

      public Boolean isSetAsDefault()

      Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).

      Returns:
      Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).
    • 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: