/* * 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; /** *

* Information about a Capacity Reservation Fleet. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CapacityReservationFleet implements Serializable, Cloneable { /** *

* The ID of the Capacity Reservation Fleet. *

*/ private String capacityReservationFleetId; /** *

* The ARN of the Capacity Reservation Fleet. *

*/ private String capacityReservationFleetArn; /** *

* The state of the Capacity Reservation Fleet. Possible states include: *

* */ private String state; /** *

* The total number of capacity units for which the Capacity Reservation Fleet reserves capacity. For more * information, see Total target * capacity in the Amazon EC2 User Guide. *

*/ private Integer totalTargetCapacity; /** *

* The capacity units that have been fulfilled. *

*/ private Double totalFulfilledCapacity; /** *

* The tenancy of the Capacity Reservation Fleet. Tenancies include: *

* */ private String tenancy; /** *

* The date and time at which the Capacity Reservation Fleet expires. *

*/ private java.util.Date endDate; /** *

* The date and time at which the Capacity Reservation Fleet was created. *

*/ private java.util.Date createTime; /** *

* Indicates the type of instance launches that the Capacity Reservation Fleet accepts. All Capacity Reservations in * the Fleet inherit this instance matching criteria. *

*

* Currently, Capacity Reservation Fleets support open instance matching criteria only. This means that * instances that have matching attributes (instance type, platform, and Availability Zone) run in the Capacity * Reservations automatically. Instances do not need to explicitly target a Capacity Reservation Fleet to use its * reserved capacity. *

*/ private String instanceMatchCriteria; /** *

* The strategy used by the Capacity Reservation Fleet to determine which of the specified instance types to use. * For more information, see For more information, see Allocation * strategy in the Amazon EC2 User Guide. *

*/ private String allocationStrategy; /** *

* Information about the instance types for which to reserve the capacity. *

*/ private com.amazonaws.internal.SdkInternalList instanceTypeSpecifications; /** *

* The tags assigned to the Capacity Reservation Fleet. *

*/ private com.amazonaws.internal.SdkInternalList tags; /** *

* The ID of the Capacity Reservation Fleet. *

* * @param capacityReservationFleetId * The ID of the Capacity Reservation Fleet. */ public void setCapacityReservationFleetId(String capacityReservationFleetId) { this.capacityReservationFleetId = capacityReservationFleetId; } /** *

* The ID of the Capacity Reservation Fleet. *

* * @return The ID of the Capacity Reservation Fleet. */ public String getCapacityReservationFleetId() { return this.capacityReservationFleetId; } /** *

* The ID of the Capacity Reservation Fleet. *

* * @param capacityReservationFleetId * The ID of the Capacity Reservation Fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public CapacityReservationFleet withCapacityReservationFleetId(String capacityReservationFleetId) { setCapacityReservationFleetId(capacityReservationFleetId); return this; } /** *

* The ARN of the Capacity Reservation Fleet. *

* * @param capacityReservationFleetArn * The ARN of the Capacity Reservation Fleet. */ public void setCapacityReservationFleetArn(String capacityReservationFleetArn) { this.capacityReservationFleetArn = capacityReservationFleetArn; } /** *

* The ARN of the Capacity Reservation Fleet. *

* * @return The ARN of the Capacity Reservation Fleet. */ public String getCapacityReservationFleetArn() { return this.capacityReservationFleetArn; } /** *

* The ARN of the Capacity Reservation Fleet. *

* * @param capacityReservationFleetArn * The ARN of the Capacity Reservation Fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public CapacityReservationFleet withCapacityReservationFleetArn(String capacityReservationFleetArn) { setCapacityReservationFleetArn(capacityReservationFleetArn); return this; } /** *

* The state of the Capacity Reservation Fleet. Possible states include: *

* * * @param state * The state of the Capacity Reservation Fleet. Possible states include:

*