public class Change extends Object implements Serializable
A complex type that contains the information for each change in a change batch request.
Constructor and Description |
---|
Change()
Default constructor for a new Change object.
|
Change(ChangeAction action,
ResourceRecordSet resourceRecordSet)
Constructs a new Change object.
|
Change(String action,
ResourceRecordSet resourceRecordSet)
Constructs a new Change object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAction()
The action to perform.
|
ResourceRecordSet |
getResourceRecordSet()
Information about the resource record set to create or delete.
|
int |
hashCode() |
void |
setAction(ChangeAction action)
The action to perform.
|
void |
setAction(String action)
The action to perform.
|
void |
setResourceRecordSet(ResourceRecordSet resourceRecordSet)
Information about the resource record set to create or delete.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Change |
withAction(ChangeAction action)
The action to perform.
|
Change |
withAction(String action)
The action to perform.
|
Change |
withResourceRecordSet(ResourceRecordSet resourceRecordSet)
Information about the resource record set to create or delete.
|
public Change()
public Change(String action, ResourceRecordSet resourceRecordSet)
action
- The action to perform. Valid values:
CREATE
| DELETE
| UPSERT
resourceRecordSet
- Information about the resource record set to
create or delete.public Change(ChangeAction action, ResourceRecordSet resourceRecordSet)
action
- The action to perform. Valid values:
CREATE
| DELETE
| UPSERT
resourceRecordSet
- Information about the resource record set to
create or delete.public String getAction()
Valid values: CREATE
|
DELETE
| UPSERT
Constraints:
Allowed Values: CREATE, DELETE, UPSERT
Valid values: CREATE
|
DELETE
| UPSERT
ChangeAction
public void setAction(String action)
Valid values: CREATE
|
DELETE
| UPSERT
Constraints:
Allowed Values: CREATE, DELETE, UPSERT
action
- The action to perform. Valid values: CREATE
|
DELETE
| UPSERT
ChangeAction
public Change withAction(String action)
Valid values: CREATE
|
DELETE
| UPSERT
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CREATE, DELETE, UPSERT
action
- The action to perform. Valid values: CREATE
|
DELETE
| UPSERT
ChangeAction
public void setAction(ChangeAction action)
Valid values: CREATE
|
DELETE
| UPSERT
Constraints:
Allowed Values: CREATE, DELETE, UPSERT
action
- The action to perform. Valid values: CREATE
|
DELETE
| UPSERT
ChangeAction
public Change withAction(ChangeAction action)
Valid values: CREATE
|
DELETE
| UPSERT
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CREATE, DELETE, UPSERT
action
- The action to perform. Valid values: CREATE
|
DELETE
| UPSERT
ChangeAction
public ResourceRecordSet getResourceRecordSet()
public void setResourceRecordSet(ResourceRecordSet resourceRecordSet)
resourceRecordSet
- Information about the resource record set to create or delete.public Change withResourceRecordSet(ResourceRecordSet resourceRecordSet)
Returns a reference to this object so that method calls can be chained together.
resourceRecordSet
- Information about the resource record set to create or delete.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.