Class ChangeBatch

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

public class ChangeBatch extends Object implements Serializable, Cloneable

A complex type that contains an optional comment and the changes that you want to make with a change batch request.

See Also:
  • Constructor Details

    • ChangeBatch

      public ChangeBatch()
      Default constructor for ChangeBatch object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
    • ChangeBatch

      public ChangeBatch(List<Change> changes)
      Constructs a new ChangeBatch object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      Parameters:
      changes - A complex type that contains one Change element for each resource record set that you want to create or delete.
  • Method Details

    • setComment

      public void setComment(String comment)

      Optional: Any comments you want to include about a change batch request.

      Parameters:
      comment - Optional:
    • getComment

      public String getComment()

      Optional: Any comments you want to include about a change batch request.

      Returns:
      Optional:
    • withComment

      public ChangeBatch withComment(String comment)

      Optional: Any comments you want to include about a change batch request.

      Parameters:
      comment - Optional:
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getChanges

      public List<Change> getChanges()

      A complex type that contains one Change element for each resource record set that you want to create or delete.

      Returns:
      A complex type that contains one Change element for each resource record set that you want to create or delete.
    • setChanges

      public void setChanges(Collection<Change> changes)

      A complex type that contains one Change element for each resource record set that you want to create or delete.

      Parameters:
      changes - A complex type that contains one Change element for each resource record set that you want to create or delete.
    • withChanges

      public ChangeBatch withChanges(Change... changes)

      A complex type that contains one Change element for each resource record set that you want to create or delete.

      NOTE: This method appends the values to the existing list (if any). Use setChanges(java.util.Collection) or withChanges(java.util.Collection) if you want to override the existing values.

      Parameters:
      changes - A complex type that contains one Change element for each resource record set that you want to create or delete.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withChanges

      public ChangeBatch withChanges(Collection<Change> changes)

      A complex type that contains one Change element for each resource record set that you want to create or delete.

      Parameters:
      changes - A complex type that contains one Change element for each resource record set that you want to create or delete.
      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 ChangeBatch clone()
      Overrides:
      clone in class Object