@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeCapacityReservationsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
DescribeCapacityReservationsResult() |
| Modifier and Type | Method and Description |
|---|---|
DescribeCapacityReservationsResult |
clone() |
boolean |
equals(Object obj) |
List<CapacityReservation> |
getCapacityReservations()
Information about the Capacity Reservations.
|
String |
getNextToken()
The token to use to retrieve the next page of results.
|
int |
hashCode() |
void |
setCapacityReservations(Collection<CapacityReservation> capacityReservations)
Information about the Capacity Reservations.
|
void |
setNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
String |
toString()
Returns a string representation of this object.
|
DescribeCapacityReservationsResult |
withCapacityReservations(CapacityReservation... capacityReservations)
Information about the Capacity Reservations.
|
DescribeCapacityReservationsResult |
withCapacityReservations(Collection<CapacityReservation> capacityReservations)
Information about the Capacity Reservations.
|
DescribeCapacityReservationsResult |
withNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is null when there are no more
results to return.
nextToken - The token to use to retrieve the next page of results. This value is null when there are no
more results to return.public String getNextToken()
The token to use to retrieve the next page of results. This value is null when there are no more
results to return.
null when there are no
more results to return.public DescribeCapacityReservationsResult withNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is null when there are no more
results to return.
nextToken - The token to use to retrieve the next page of results. This value is null when there are no
more results to return.public List<CapacityReservation> getCapacityReservations()
Information about the Capacity Reservations.
public void setCapacityReservations(Collection<CapacityReservation> capacityReservations)
Information about the Capacity Reservations.
capacityReservations - Information about the Capacity Reservations.public DescribeCapacityReservationsResult withCapacityReservations(CapacityReservation... capacityReservations)
Information about the Capacity Reservations.
NOTE: This method appends the values to the existing list (if any). Use
setCapacityReservations(java.util.Collection) or withCapacityReservations(java.util.Collection)
if you want to override the existing values.
capacityReservations - Information about the Capacity Reservations.public DescribeCapacityReservationsResult withCapacityReservations(Collection<CapacityReservation> capacityReservations)
Information about the Capacity Reservations.
capacityReservations - Information about the Capacity Reservations.public String toString()
toString in class ObjectObject.toString()public DescribeCapacityReservationsResult clone()