Class CreateTrafficPolicyVersionRequest

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

public class CreateTrafficPolicyVersionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

A complex type that contains information about the traffic policy for which you want to create a new version.

See Also:
  • Constructor Details

    • CreateTrafficPolicyVersionRequest

      public CreateTrafficPolicyVersionRequest()
  • Method Details

    • setId

      public void setId(String id)

      The ID of the traffic policy for which you want to create a new version.

      Parameters:
      id - The ID of the traffic policy for which you want to create a new version.
    • getId

      public String getId()

      The ID of the traffic policy for which you want to create a new version.

      Returns:
      The ID of the traffic policy for which you want to create a new version.
    • withId

      The ID of the traffic policy for which you want to create a new version.

      Parameters:
      id - The ID of the traffic policy for which you want to create a new version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDocument

      public void setDocument(String document)

      The definition of a new traffic policy version, in JSON format. You must specify the full definition of the new traffic policy. You cannot specify just the differences between the new version and a previous version.

      Parameters:
      document - The definition of a new traffic policy version, in JSON format. You must specify the full definition of the new traffic policy. You cannot specify just the differences between the new version and a previous version.
    • getDocument

      public String getDocument()

      The definition of a new traffic policy version, in JSON format. You must specify the full definition of the new traffic policy. You cannot specify just the differences between the new version and a previous version.

      Returns:
      The definition of a new traffic policy version, in JSON format. You must specify the full definition of the new traffic policy. You cannot specify just the differences between the new version and a previous version.
    • withDocument

      public CreateTrafficPolicyVersionRequest withDocument(String document)

      The definition of a new traffic policy version, in JSON format. You must specify the full definition of the new traffic policy. You cannot specify just the differences between the new version and a previous version.

      Parameters:
      document - The definition of a new traffic policy version, in JSON format. You must specify the full definition of the new traffic policy. You cannot specify just the differences between the new version and a previous version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setComment

      public void setComment(String comment)

      Any comments that you want to include about the new traffic policy version.

      Parameters:
      comment - Any comments that you want to include about the new traffic policy version.
    • getComment

      public String getComment()

      Any comments that you want to include about the new traffic policy version.

      Returns:
      Any comments that you want to include about the new traffic policy version.
    • withComment

      public CreateTrafficPolicyVersionRequest withComment(String comment)

      Any comments that you want to include about the new traffic policy version.

      Parameters:
      comment - Any comments that you want to include about the new traffic policy version.
      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

      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: