/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.ec2.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceResult;
/**
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetCapacityReservationUsageResult extends com.amazonaws.AmazonWebServiceResult
* The token to use to retrieve the next page of results. This value is
* The ID of the Capacity Reservation.
*
* The type of instance for which the Capacity Reservation reserves capacity.
*
* The number of instances for which the Capacity Reservation reserves capacity.
*
* The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation.
*
* The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states:
*
*
*
*
*
*
* Information about the Capacity Reservation usage.
*
* The token to use to retrieve the next page of results. This value is
* The token to use to retrieve the next page of results. This value is
* The token to use to retrieve the next page of results. This value is
* The ID of the Capacity Reservation.
*
* The ID of the Capacity Reservation.
*
* The ID of the Capacity Reservation.
*
* The type of instance for which the Capacity Reservation reserves capacity.
*
* The type of instance for which the Capacity Reservation reserves capacity.
*
* The type of instance for which the Capacity Reservation reserves capacity.
*
* The number of instances for which the Capacity Reservation reserves capacity.
*
* The number of instances for which the Capacity Reservation reserves capacity.
*
* The number of instances for which the Capacity Reservation reserves capacity.
*
* The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation.
*
* The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation.
*
* The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation.
*
* The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states:
*
*
*
*
*
* null
when there are no more
* results to return.
*
*
*/
private String state;
/**
* active
- The Capacity Reservation is active and the capacity is available for your use.
* expired
- The Capacity Reservation expired automatically at the date and time specified in your
* request. The reserved capacity is no longer available for your use.
* cancelled
- The Capacity Reservation was cancelled. The reserved capacity is no longer available for
* your use.
* pending
- The Capacity Reservation request was successful but the capacity provisioning is still
* pending.
* failed
- The Capacity Reservation request has failed. A request might fail due to invalid request
* parameters, capacity constraints, or instance limit constraints. Failed requests are retained for 60 minutes.
* null
when there are no more
* results to return.
* null
when there are no
* more results to return.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
* null
when there are no more
* results to return.
* null
when there are no
* more results to return.
*/
public String getNextToken() {
return this.nextToken;
}
/**
* null
when there are no more
* results to return.
* null
when there are no
* more results to return.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCapacityReservationUsageResult withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
*
*
*
* @param state
* The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following
* states:active
- The Capacity Reservation is active and the capacity is available for your use.
* expired
- The Capacity Reservation expired automatically at the date and time specified in your
* request. The reserved capacity is no longer available for your use.
* cancelled
- The Capacity Reservation was cancelled. The reserved capacity is no longer available for
* your use.
* pending
- The Capacity Reservation request was successful but the capacity provisioning is still
* pending.
* failed
- The Capacity Reservation request has failed. A request might fail due to invalid request
* parameters, capacity constraints, or instance limit constraints. Failed requests are retained for 60 minutes.
*
* active
- The Capacity Reservation is active and the capacity is available for your use.
*
* expired
- The Capacity Reservation expired automatically at the date and time specified in
* your request. The reserved capacity is no longer available for your use.
*
* cancelled
- The Capacity Reservation was cancelled. The reserved capacity is no longer
* available for your use.
*
* pending
- The Capacity Reservation request was successful but the capacity provisioning is
* still pending.
*
* failed
- The Capacity Reservation request has failed. A request might fail due to invalid
* request parameters, capacity constraints, or instance limit constraints. Failed requests are retained for
* 60 minutes.
*
* The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states: *
*
* active
- The Capacity Reservation is active and the capacity is available for your use.
*
* expired
- The Capacity Reservation expired automatically at the date and time specified in your
* request. The reserved capacity is no longer available for your use.
*
* cancelled
- The Capacity Reservation was cancelled. The reserved capacity is no longer available for
* your use.
*
* pending
- The Capacity Reservation request was successful but the capacity provisioning is still
* pending.
*
* failed
- The Capacity Reservation request has failed. A request might fail due to invalid request
* parameters, capacity constraints, or instance limit constraints. Failed requests are retained for 60 minutes.
*
* active
- The Capacity Reservation is active and the capacity is available for your use.
*
* expired
- The Capacity Reservation expired automatically at the date and time specified in
* your request. The reserved capacity is no longer available for your use.
*
* cancelled
- The Capacity Reservation was cancelled. The reserved capacity is no longer
* available for your use.
*
* pending
- The Capacity Reservation request was successful but the capacity provisioning is
* still pending.
*
* failed
- The Capacity Reservation request has failed. A request might fail due to invalid
* request parameters, capacity constraints, or instance limit constraints. Failed requests are retained for
* 60 minutes.
*
* The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states: *
*
* active
- The Capacity Reservation is active and the capacity is available for your use.
*
* expired
- The Capacity Reservation expired automatically at the date and time specified in your
* request. The reserved capacity is no longer available for your use.
*
* cancelled
- The Capacity Reservation was cancelled. The reserved capacity is no longer available for
* your use.
*
* pending
- The Capacity Reservation request was successful but the capacity provisioning is still
* pending.
*
* failed
- The Capacity Reservation request has failed. A request might fail due to invalid request
* parameters, capacity constraints, or instance limit constraints. Failed requests are retained for 60 minutes.
*
* active
- The Capacity Reservation is active and the capacity is available for your use.
*
* expired
- The Capacity Reservation expired automatically at the date and time specified in
* your request. The reserved capacity is no longer available for your use.
*
* cancelled
- The Capacity Reservation was cancelled. The reserved capacity is no longer
* available for your use.
*
* pending
- The Capacity Reservation request was successful but the capacity provisioning is
* still pending.
*
* failed
- The Capacity Reservation request has failed. A request might fail due to invalid
* request parameters, capacity constraints, or instance limit constraints. Failed requests are retained for
* 60 minutes.
*
* The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states: *
*
* active
- The Capacity Reservation is active and the capacity is available for your use.
*
* expired
- The Capacity Reservation expired automatically at the date and time specified in your
* request. The reserved capacity is no longer available for your use.
*
* cancelled
- The Capacity Reservation was cancelled. The reserved capacity is no longer available for
* your use.
*
* pending
- The Capacity Reservation request was successful but the capacity provisioning is still
* pending.
*
* failed
- The Capacity Reservation request has failed. A request might fail due to invalid request
* parameters, capacity constraints, or instance limit constraints. Failed requests are retained for 60 minutes.
*
* active
- The Capacity Reservation is active and the capacity is available for your use.
*
* expired
- The Capacity Reservation expired automatically at the date and time specified in
* your request. The reserved capacity is no longer available for your use.
*
* cancelled
- The Capacity Reservation was cancelled. The reserved capacity is no longer
* available for your use.
*
* pending
- The Capacity Reservation request was successful but the capacity provisioning is
* still pending.
*
* failed
- The Capacity Reservation request has failed. A request might fail due to invalid
* request parameters, capacity constraints, or instance limit constraints. Failed requests are retained for
* 60 minutes.
*
* Information about the Capacity Reservation usage. *
* * @return Information about the Capacity Reservation usage. */ public java.util.List* Information about the Capacity Reservation usage. *
* * @param instanceUsages * Information about the Capacity Reservation usage. */ public void setInstanceUsages(java.util.Collection* Information about the Capacity Reservation usage. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setInstanceUsages(java.util.Collection)} or {@link #withInstanceUsages(java.util.Collection)} if you want * to override the existing values. *
* * @param instanceUsages * Information about the Capacity Reservation usage. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCapacityReservationUsageResult withInstanceUsages(InstanceUsage... instanceUsages) { if (this.instanceUsages == null) { setInstanceUsages(new com.amazonaws.internal.SdkInternalList* Information about the Capacity Reservation usage. *
* * @param instanceUsages * Information about the Capacity Reservation usage. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCapacityReservationUsageResult withInstanceUsages(java.util.Collection