public class ChangeBatch
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A complex type that contains an optional comment and the changes that you want to make with a change batch request.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Change> |
changes
A complex type that contains one
Change element for each
resource record set that you want to create or delete. |
private java.lang.String |
comment
Optional: Any comments you want to include about a change batch
request.
|
Constructor and Description |
---|
ChangeBatch()
Default constructor for ChangeBatch object.
|
ChangeBatch(java.util.List<Change> changes)
Constructs a new ChangeBatch object.
|
Modifier and Type | Method and Description |
---|---|
ChangeBatch |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Change> |
getChanges()
A complex type that contains one
Change element for each
resource record set that you want to create or delete. |
java.lang.String |
getComment()
Optional: Any comments you want to include about a change batch
request.
|
int |
hashCode() |
void |
setChanges(java.util.Collection<Change> changes)
A complex type that contains one
Change element for each
resource record set that you want to create or delete. |
void |
setComment(java.lang.String comment)
Optional: Any comments you want to include about a change batch
request.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ChangeBatch |
withChanges(Change... changes)
A complex type that contains one
Change element for each
resource record set that you want to create or delete. |
ChangeBatch |
withChanges(java.util.Collection<Change> changes)
A complex type that contains one
Change element for each
resource record set that you want to create or delete. |
ChangeBatch |
withComment(java.lang.String comment)
Optional: Any comments you want to include about a change batch
request.
|
private java.lang.String comment
Optional: Any comments you want to include about a change batch request.
private SdkInternalList<Change> changes
A complex type that contains one Change
element for each
resource record set that you want to create or delete.
public ChangeBatch()
public ChangeBatch(java.util.List<Change> changes)
changes
- A complex type that contains one Change
element for
each resource record set that you want to create or delete.public void setComment(java.lang.String comment)
Optional: Any comments you want to include about a change batch request.
comment
- Optional:public java.lang.String getComment()
Optional: Any comments you want to include about a change batch request.
public ChangeBatch withComment(java.lang.String comment)
Optional: Any comments you want to include about a change batch request.
comment
- Optional:public java.util.List<Change> getChanges()
A complex type that contains one Change
element for each
resource record set that you want to create or delete.
Change
element for
each resource record set that you want to create or delete.public void setChanges(java.util.Collection<Change> changes)
A complex type that contains one Change
element for each
resource record set that you want to create or delete.
changes
- A complex type that contains one Change
element for
each resource record set that you want to create or delete.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.
changes
- A complex type that contains one Change
element for
each resource record set that you want to create or delete.public ChangeBatch withChanges(java.util.Collection<Change> changes)
A complex type that contains one Change
element for each
resource record set that you want to create or delete.
changes
- A complex type that contains one Change
element for
each resource record set that you want to create or delete.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ChangeBatch clone()
clone
in class java.lang.Object