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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChangeBatch()
Default constructor for ChangeBatch object.ChangeBatch(List<Change> changes)
Constructs a new ChangeBatch object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangeBatch
clone()
boolean
equals(Object obj)
List<Change>
getChanges()
A complex type that contains oneChange
element for each resource record set that you want to create or delete.String
getComment()
Optional: Any comments you want to include about a change batch request.int
hashCode()
void
setChanges(Collection<Change> changes)
A complex type that contains oneChange
element for each resource record set that you want to create or delete.void
setComment(String comment)
Optional: Any comments you want to include about a change batch request.String
toString()
Returns a string representation of this object; useful for testing and debugging.ChangeBatch
withChanges(Change... changes)
A complex type that contains oneChange
element for each resource record set that you want to create or delete.ChangeBatch
withChanges(Collection<Change> changes)
A complex type that contains oneChange
element for each resource record set that you want to create or delete.ChangeBatch
withComment(String comment)
Optional: Any comments you want to include about a change batch request.
-
-
-
Constructor Detail
-
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 oneChange
element for each resource record set that you want to create or delete.
-
-
Method Detail
-
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 oneChange
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)
orwithChanges(java.util.Collection)
if you want to override the existing values.- Parameters:
changes
- A complex type that contains oneChange
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 oneChange
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ChangeBatch clone()
-
-