/* * 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: *
*
* submitted
- The Capacity Reservation Fleet request has been submitted and Amazon Elastic Compute
* Cloud is preparing to create the Capacity Reservations.
*
* modifying
- The Capacity Reservation Fleet is being modified. The Fleet remains in this state until
* the modification is complete.
*
* active
- The Capacity Reservation Fleet has fulfilled its total target capacity and it is attempting
* to maintain this capacity. The Fleet remains in this state until it is modified or deleted.
*
* partially_fulfilled
- The Capacity Reservation Fleet has partially fulfilled its total target
* capacity. There is insufficient Amazon EC2 to fulfill the total target capacity. The Fleet is attempting to
* asynchronously fulfill its total target capacity.
*
* expiring
- The Capacity Reservation Fleet has reach its end date and it is in the process of
* expiring. One or more of its Capacity reservations might still be active.
*
* expired
- The Capacity Reservation Fleet has reach its end date. The Fleet and its Capacity
* Reservations are expired. The Fleet can't create new Capacity Reservations.
*
* cancelling
- The Capacity Reservation Fleet is in the process of being cancelled. One or more of its
* Capacity reservations might still be active.
*
* cancelled
- The Capacity Reservation Fleet has been manually cancelled. The Fleet and its Capacity
* Reservations are cancelled and the Fleet can't create new Capacity Reservations.
*
* failed
- The Capacity Reservation Fleet failed to reserve capacity for the specified instance types.
*
* 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: *
*
* default
- The Capacity Reservation Fleet is created on hardware that is shared with other Amazon Web
* Services accounts.
*
* dedicated
- The Capacity Reservation Fleet is created on single-tenant hardware that is dedicated to
* a single Amazon Web Services account.
*
* 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.
*
* 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* The tags assigned to the Capacity Reservation Fleet. *
*/ private com.amazonaws.internal.SdkInternalList* 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: *
*
* submitted
- The Capacity Reservation Fleet request has been submitted and Amazon Elastic Compute
* Cloud is preparing to create the Capacity Reservations.
*
* modifying
- The Capacity Reservation Fleet is being modified. The Fleet remains in this state until
* the modification is complete.
*
* active
- The Capacity Reservation Fleet has fulfilled its total target capacity and it is attempting
* to maintain this capacity. The Fleet remains in this state until it is modified or deleted.
*
* partially_fulfilled
- The Capacity Reservation Fleet has partially fulfilled its total target
* capacity. There is insufficient Amazon EC2 to fulfill the total target capacity. The Fleet is attempting to
* asynchronously fulfill its total target capacity.
*
* expiring
- The Capacity Reservation Fleet has reach its end date and it is in the process of
* expiring. One or more of its Capacity reservations might still be active.
*
* expired
- The Capacity Reservation Fleet has reach its end date. The Fleet and its Capacity
* Reservations are expired. The Fleet can't create new Capacity Reservations.
*
* cancelling
- The Capacity Reservation Fleet is in the process of being cancelled. One or more of its
* Capacity reservations might still be active.
*
* cancelled
- The Capacity Reservation Fleet has been manually cancelled. The Fleet and its Capacity
* Reservations are cancelled and the Fleet can't create new Capacity Reservations.
*
* failed
- The Capacity Reservation Fleet failed to reserve capacity for the specified instance types.
*
* submitted
- The Capacity Reservation Fleet request has been submitted and Amazon Elastic
* Compute Cloud is preparing to create the Capacity Reservations.
*
* modifying
- The Capacity Reservation Fleet is being modified. The Fleet remains in this state
* until the modification is complete.
*
* active
- The Capacity Reservation Fleet has fulfilled its total target capacity and it is
* attempting to maintain this capacity. The Fleet remains in this state until it is modified or deleted.
*
* partially_fulfilled
- The Capacity Reservation Fleet has partially fulfilled its total target
* capacity. There is insufficient Amazon EC2 to fulfill the total target capacity. The Fleet is attempting
* to asynchronously fulfill its total target capacity.
*
* expiring
- The Capacity Reservation Fleet has reach its end date and it is in the process of
* expiring. One or more of its Capacity reservations might still be active.
*
* expired
- The Capacity Reservation Fleet has reach its end date. The Fleet and its Capacity
* Reservations are expired. The Fleet can't create new Capacity Reservations.
*
* cancelling
- The Capacity Reservation Fleet is in the process of being cancelled. One or more
* of its Capacity reservations might still be active.
*
* cancelled
- The Capacity Reservation Fleet has been manually cancelled. The Fleet and its
* Capacity Reservations are cancelled and the Fleet can't create new Capacity Reservations.
*
* failed
- The Capacity Reservation Fleet failed to reserve capacity for the specified instance
* types.
*
* The state of the Capacity Reservation Fleet. Possible states include: *
*
* submitted
- The Capacity Reservation Fleet request has been submitted and Amazon Elastic Compute
* Cloud is preparing to create the Capacity Reservations.
*
* modifying
- The Capacity Reservation Fleet is being modified. The Fleet remains in this state until
* the modification is complete.
*
* active
- The Capacity Reservation Fleet has fulfilled its total target capacity and it is attempting
* to maintain this capacity. The Fleet remains in this state until it is modified or deleted.
*
* partially_fulfilled
- The Capacity Reservation Fleet has partially fulfilled its total target
* capacity. There is insufficient Amazon EC2 to fulfill the total target capacity. The Fleet is attempting to
* asynchronously fulfill its total target capacity.
*
* expiring
- The Capacity Reservation Fleet has reach its end date and it is in the process of
* expiring. One or more of its Capacity reservations might still be active.
*
* expired
- The Capacity Reservation Fleet has reach its end date. The Fleet and its Capacity
* Reservations are expired. The Fleet can't create new Capacity Reservations.
*
* cancelling
- The Capacity Reservation Fleet is in the process of being cancelled. One or more of its
* Capacity reservations might still be active.
*
* cancelled
- The Capacity Reservation Fleet has been manually cancelled. The Fleet and its Capacity
* Reservations are cancelled and the Fleet can't create new Capacity Reservations.
*
* failed
- The Capacity Reservation Fleet failed to reserve capacity for the specified instance types.
*
* submitted
- The Capacity Reservation Fleet request has been submitted and Amazon Elastic
* Compute Cloud is preparing to create the Capacity Reservations.
*
* modifying
- The Capacity Reservation Fleet is being modified. The Fleet remains in this
* state until the modification is complete.
*
* active
- The Capacity Reservation Fleet has fulfilled its total target capacity and it is
* attempting to maintain this capacity. The Fleet remains in this state until it is modified or deleted.
*
* partially_fulfilled
- The Capacity Reservation Fleet has partially fulfilled its total
* target capacity. There is insufficient Amazon EC2 to fulfill the total target capacity. The Fleet is
* attempting to asynchronously fulfill its total target capacity.
*
* expiring
- The Capacity Reservation Fleet has reach its end date and it is in the process of
* expiring. One or more of its Capacity reservations might still be active.
*
* expired
- The Capacity Reservation Fleet has reach its end date. The Fleet and its Capacity
* Reservations are expired. The Fleet can't create new Capacity Reservations.
*
* cancelling
- The Capacity Reservation Fleet is in the process of being cancelled. One or
* more of its Capacity reservations might still be active.
*
* cancelled
- The Capacity Reservation Fleet has been manually cancelled. The Fleet and its
* Capacity Reservations are cancelled and the Fleet can't create new Capacity Reservations.
*
* failed
- The Capacity Reservation Fleet failed to reserve capacity for the specified
* instance types.
*
* The state of the Capacity Reservation Fleet. Possible states include: *
*
* submitted
- The Capacity Reservation Fleet request has been submitted and Amazon Elastic Compute
* Cloud is preparing to create the Capacity Reservations.
*
* modifying
- The Capacity Reservation Fleet is being modified. The Fleet remains in this state until
* the modification is complete.
*
* active
- The Capacity Reservation Fleet has fulfilled its total target capacity and it is attempting
* to maintain this capacity. The Fleet remains in this state until it is modified or deleted.
*
* partially_fulfilled
- The Capacity Reservation Fleet has partially fulfilled its total target
* capacity. There is insufficient Amazon EC2 to fulfill the total target capacity. The Fleet is attempting to
* asynchronously fulfill its total target capacity.
*
* expiring
- The Capacity Reservation Fleet has reach its end date and it is in the process of
* expiring. One or more of its Capacity reservations might still be active.
*
* expired
- The Capacity Reservation Fleet has reach its end date. The Fleet and its Capacity
* Reservations are expired. The Fleet can't create new Capacity Reservations.
*
* cancelling
- The Capacity Reservation Fleet is in the process of being cancelled. One or more of its
* Capacity reservations might still be active.
*
* cancelled
- The Capacity Reservation Fleet has been manually cancelled. The Fleet and its Capacity
* Reservations are cancelled and the Fleet can't create new Capacity Reservations.
*
* failed
- The Capacity Reservation Fleet failed to reserve capacity for the specified instance types.
*
* submitted
- The Capacity Reservation Fleet request has been submitted and Amazon Elastic
* Compute Cloud is preparing to create the Capacity Reservations.
*
* modifying
- The Capacity Reservation Fleet is being modified. The Fleet remains in this state
* until the modification is complete.
*
* active
- The Capacity Reservation Fleet has fulfilled its total target capacity and it is
* attempting to maintain this capacity. The Fleet remains in this state until it is modified or deleted.
*
* partially_fulfilled
- The Capacity Reservation Fleet has partially fulfilled its total target
* capacity. There is insufficient Amazon EC2 to fulfill the total target capacity. The Fleet is attempting
* to asynchronously fulfill its total target capacity.
*
* expiring
- The Capacity Reservation Fleet has reach its end date and it is in the process of
* expiring. One or more of its Capacity reservations might still be active.
*
* expired
- The Capacity Reservation Fleet has reach its end date. The Fleet and its Capacity
* Reservations are expired. The Fleet can't create new Capacity Reservations.
*
* cancelling
- The Capacity Reservation Fleet is in the process of being cancelled. One or more
* of its Capacity reservations might still be active.
*
* cancelled
- The Capacity Reservation Fleet has been manually cancelled. The Fleet and its
* Capacity Reservations are cancelled and the Fleet can't create new Capacity Reservations.
*
* failed
- The Capacity Reservation Fleet failed to reserve capacity for the specified instance
* types.
*
* The state of the Capacity Reservation Fleet. Possible states include: *
*
* submitted
- The Capacity Reservation Fleet request has been submitted and Amazon Elastic Compute
* Cloud is preparing to create the Capacity Reservations.
*
* modifying
- The Capacity Reservation Fleet is being modified. The Fleet remains in this state until
* the modification is complete.
*
* active
- The Capacity Reservation Fleet has fulfilled its total target capacity and it is attempting
* to maintain this capacity. The Fleet remains in this state until it is modified or deleted.
*
* partially_fulfilled
- The Capacity Reservation Fleet has partially fulfilled its total target
* capacity. There is insufficient Amazon EC2 to fulfill the total target capacity. The Fleet is attempting to
* asynchronously fulfill its total target capacity.
*
* expiring
- The Capacity Reservation Fleet has reach its end date and it is in the process of
* expiring. One or more of its Capacity reservations might still be active.
*
* expired
- The Capacity Reservation Fleet has reach its end date. The Fleet and its Capacity
* Reservations are expired. The Fleet can't create new Capacity Reservations.
*
* cancelling
- The Capacity Reservation Fleet is in the process of being cancelled. One or more of its
* Capacity reservations might still be active.
*
* cancelled
- The Capacity Reservation Fleet has been manually cancelled. The Fleet and its Capacity
* Reservations are cancelled and the Fleet can't create new Capacity Reservations.
*
* failed
- The Capacity Reservation Fleet failed to reserve capacity for the specified instance types.
*
* submitted
- The Capacity Reservation Fleet request has been submitted and Amazon Elastic
* Compute Cloud is preparing to create the Capacity Reservations.
*
* modifying
- The Capacity Reservation Fleet is being modified. The Fleet remains in this state
* until the modification is complete.
*
* active
- The Capacity Reservation Fleet has fulfilled its total target capacity and it is
* attempting to maintain this capacity. The Fleet remains in this state until it is modified or deleted.
*
* partially_fulfilled
- The Capacity Reservation Fleet has partially fulfilled its total target
* capacity. There is insufficient Amazon EC2 to fulfill the total target capacity. The Fleet is attempting
* to asynchronously fulfill its total target capacity.
*
* expiring
- The Capacity Reservation Fleet has reach its end date and it is in the process of
* expiring. One or more of its Capacity reservations might still be active.
*
* expired
- The Capacity Reservation Fleet has reach its end date. The Fleet and its Capacity
* Reservations are expired. The Fleet can't create new Capacity Reservations.
*
* cancelling
- The Capacity Reservation Fleet is in the process of being cancelled. One or more
* of its Capacity reservations might still be active.
*
* cancelled
- The Capacity Reservation Fleet has been manually cancelled. The Fleet and its
* Capacity Reservations are cancelled and the Fleet can't create new Capacity Reservations.
*
* failed
- The Capacity Reservation Fleet failed to reserve capacity for the specified instance
* types.
*
* 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. *
* * @param totalTargetCapacity * 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. */ public void setTotalTargetCapacity(Integer totalTargetCapacity) { this.totalTargetCapacity = totalTargetCapacity; } /** ** 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. *
* * @return 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. */ public Integer getTotalTargetCapacity() { return this.totalTargetCapacity; } /** ** 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. *
* * @param totalTargetCapacity * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CapacityReservationFleet withTotalTargetCapacity(Integer totalTargetCapacity) { setTotalTargetCapacity(totalTargetCapacity); return this; } /** ** The capacity units that have been fulfilled. *
* * @param totalFulfilledCapacity * The capacity units that have been fulfilled. */ public void setTotalFulfilledCapacity(Double totalFulfilledCapacity) { this.totalFulfilledCapacity = totalFulfilledCapacity; } /** ** The capacity units that have been fulfilled. *
* * @return The capacity units that have been fulfilled. */ public Double getTotalFulfilledCapacity() { return this.totalFulfilledCapacity; } /** ** The capacity units that have been fulfilled. *
* * @param totalFulfilledCapacity * The capacity units that have been fulfilled. * @return Returns a reference to this object so that method calls can be chained together. */ public CapacityReservationFleet withTotalFulfilledCapacity(Double totalFulfilledCapacity) { setTotalFulfilledCapacity(totalFulfilledCapacity); return this; } /** ** The tenancy of the Capacity Reservation Fleet. Tenancies include: *
*
* default
- The Capacity Reservation Fleet is created on hardware that is shared with other Amazon Web
* Services accounts.
*
* dedicated
- The Capacity Reservation Fleet is created on single-tenant hardware that is dedicated to
* a single Amazon Web Services account.
*
* default
- The Capacity Reservation Fleet is created on hardware that is shared with other
* Amazon Web Services accounts.
*
* dedicated
- The Capacity Reservation Fleet is created on single-tenant hardware that is
* dedicated to a single Amazon Web Services account.
*
* The tenancy of the Capacity Reservation Fleet. Tenancies include: *
*
* default
- The Capacity Reservation Fleet is created on hardware that is shared with other Amazon Web
* Services accounts.
*
* dedicated
- The Capacity Reservation Fleet is created on single-tenant hardware that is dedicated to
* a single Amazon Web Services account.
*
* default
- The Capacity Reservation Fleet is created on hardware that is shared with other
* Amazon Web Services accounts.
*
* dedicated
- The Capacity Reservation Fleet is created on single-tenant hardware that is
* dedicated to a single Amazon Web Services account.
*
* The tenancy of the Capacity Reservation Fleet. Tenancies include: *
*
* default
- The Capacity Reservation Fleet is created on hardware that is shared with other Amazon Web
* Services accounts.
*
* dedicated
- The Capacity Reservation Fleet is created on single-tenant hardware that is dedicated to
* a single Amazon Web Services account.
*
* default
- The Capacity Reservation Fleet is created on hardware that is shared with other
* Amazon Web Services accounts.
*
* dedicated
- The Capacity Reservation Fleet is created on single-tenant hardware that is
* dedicated to a single Amazon Web Services account.
*
* The tenancy of the Capacity Reservation Fleet. Tenancies include: *
*
* default
- The Capacity Reservation Fleet is created on hardware that is shared with other Amazon Web
* Services accounts.
*
* dedicated
- The Capacity Reservation Fleet is created on single-tenant hardware that is dedicated to
* a single Amazon Web Services account.
*
* default
- The Capacity Reservation Fleet is created on hardware that is shared with other
* Amazon Web Services accounts.
*
* dedicated
- The Capacity Reservation Fleet is created on single-tenant hardware that is
* dedicated to a single Amazon Web Services account.
*
* The date and time at which the Capacity Reservation Fleet expires. *
* * @param endDate * The date and time at which the Capacity Reservation Fleet expires. */ public void setEndDate(java.util.Date endDate) { this.endDate = endDate; } /** ** The date and time at which the Capacity Reservation Fleet expires. *
* * @return The date and time at which the Capacity Reservation Fleet expires. */ public java.util.Date getEndDate() { return this.endDate; } /** ** The date and time at which the Capacity Reservation Fleet expires. *
* * @param endDate * The date and time at which the Capacity Reservation Fleet expires. * @return Returns a reference to this object so that method calls can be chained together. */ public CapacityReservationFleet withEndDate(java.util.Date endDate) { setEndDate(endDate); return this; } /** ** The date and time at which the Capacity Reservation Fleet was created. *
* * @param createTime * The date and time at which the Capacity Reservation Fleet was created. */ public void setCreateTime(java.util.Date createTime) { this.createTime = createTime; } /** ** The date and time at which the Capacity Reservation Fleet was created. *
* * @return The date and time at which the Capacity Reservation Fleet was created. */ public java.util.Date getCreateTime() { return this.createTime; } /** ** The date and time at which the Capacity Reservation Fleet was created. *
* * @param createTime * The date and time at which the Capacity Reservation Fleet was created. * @return Returns a reference to this object so that method calls can be chained together. */ public CapacityReservationFleet withCreateTime(java.util.Date createTime) { setCreateTime(createTime); return this; } /** ** 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.
*
* 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.
* @see FleetInstanceMatchCriteria
*/
public void setInstanceMatchCriteria(String instanceMatchCriteria) {
this.instanceMatchCriteria = instanceMatchCriteria;
}
/**
*
* 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.
*
* 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.
* @see FleetInstanceMatchCriteria
*/
public String getInstanceMatchCriteria() {
return this.instanceMatchCriteria;
}
/**
*
* 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.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FleetInstanceMatchCriteria
*/
public CapacityReservationFleet withInstanceMatchCriteria(String instanceMatchCriteria) {
setInstanceMatchCriteria(instanceMatchCriteria);
return this;
}
/**
*
* 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.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FleetInstanceMatchCriteria
*/
public CapacityReservationFleet withInstanceMatchCriteria(FleetInstanceMatchCriteria instanceMatchCriteria) {
this.instanceMatchCriteria = instanceMatchCriteria.toString();
return this;
}
/**
*
* 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. *
* * @param allocationStrategy * 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. */ public void setAllocationStrategy(String allocationStrategy) { this.allocationStrategy = allocationStrategy; } /** ** 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. *
* * @return 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. */ public String getAllocationStrategy() { return this.allocationStrategy; } /** ** 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. *
* * @param allocationStrategy * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CapacityReservationFleet withAllocationStrategy(String allocationStrategy) { setAllocationStrategy(allocationStrategy); return this; } /** ** Information about the instance types for which to reserve the capacity. *
* * @return Information about the instance types for which to reserve the capacity. */ public java.util.List* Information about the instance types for which to reserve the capacity. *
* * @param instanceTypeSpecifications * Information about the instance types for which to reserve the capacity. */ public void setInstanceTypeSpecifications(java.util.Collection* Information about the instance types for which to reserve the capacity. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setInstanceTypeSpecifications(java.util.Collection)} or * {@link #withInstanceTypeSpecifications(java.util.Collection)} if you want to override the existing values. *
* * @param instanceTypeSpecifications * Information about the instance types for which to reserve the capacity. * @return Returns a reference to this object so that method calls can be chained together. */ public CapacityReservationFleet withInstanceTypeSpecifications(FleetCapacityReservation... instanceTypeSpecifications) { if (this.instanceTypeSpecifications == null) { setInstanceTypeSpecifications(new com.amazonaws.internal.SdkInternalList* Information about the instance types for which to reserve the capacity. *
* * @param instanceTypeSpecifications * Information about the instance types for which to reserve the capacity. * @return Returns a reference to this object so that method calls can be chained together. */ public CapacityReservationFleet withInstanceTypeSpecifications(java.util.Collection* The tags assigned to the Capacity Reservation Fleet. *
* * @return The tags assigned to the Capacity Reservation Fleet. */ public java.util.List* The tags assigned to the Capacity Reservation Fleet. *
* * @param tags * The tags assigned to the Capacity Reservation Fleet. */ public void setTags(java.util.Collection* The tags assigned to the Capacity Reservation Fleet. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * The tags assigned to the Capacity Reservation Fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public CapacityReservationFleet withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* The tags assigned to the Capacity Reservation Fleet. *
* * @param tags * The tags assigned to the Capacity Reservation Fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public CapacityReservationFleet withTags(java.util.Collection