@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListReservationsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListReservationsResult() |
Modifier and Type | Method and Description |
---|---|
ListReservationsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
Token to retrieve the next page of results
|
List<Reservation> |
getReservations()
List of reservations
|
int |
hashCode() |
void |
setNextToken(String nextToken)
Token to retrieve the next page of results
|
void |
setReservations(Collection<Reservation> reservations)
List of reservations
|
String |
toString()
Returns a string representation of this object.
|
ListReservationsResult |
withNextToken(String nextToken)
Token to retrieve the next page of results
|
ListReservationsResult |
withReservations(Collection<Reservation> reservations)
List of reservations
|
ListReservationsResult |
withReservations(Reservation... reservations)
List of reservations
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextToken(String nextToken)
nextToken
- Token to retrieve the next page of resultspublic String getNextToken()
public ListReservationsResult withNextToken(String nextToken)
nextToken
- Token to retrieve the next page of resultspublic List<Reservation> getReservations()
public void setReservations(Collection<Reservation> reservations)
reservations
- List of reservationspublic ListReservationsResult withReservations(Reservation... reservations)
NOTE: This method appends the values to the existing list (if any). Use
setReservations(java.util.Collection)
or withReservations(java.util.Collection)
if you want to
override the existing values.
reservations
- List of reservationspublic ListReservationsResult withReservations(Collection<Reservation> reservations)
reservations
- List of reservationspublic String toString()
toString
in class Object
Object.toString()
public ListReservationsResult clone()