/*
* 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.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.ModifyCapacityReservationFleetRequestMarshaller;
/**
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ModifyCapacityReservationFleetRequest extends AmazonWebServiceRequest implements Serializable, Cloneable,
DryRunSupportedRequest
* The ID of the Capacity Reservation Fleet to modify.
*
* The total number of capacity units to be reserved by the Capacity Reservation Fleet. This value, together with
* the instance type weights that you assign to each instance type used by the Fleet determine the number of
* instances for which the Fleet reserves capacity. Both values are based on units that make sense for your
* workload. For more information, see Total target
* capacity in the Amazon EC2 User Guide.
*
* The date and time at which the Capacity Reservation Fleet expires. When the Capacity Reservation Fleet expires,
* its state changes to
* The Capacity Reservation Fleet expires within an hour after the specified time. For example, if you specify
*
* You can't specify EndDate and RemoveEndDate in the same request.
*
* Indicates whether to remove the end date from the Capacity Reservation Fleet. If you remove the end date, the
* Capacity Reservation Fleet does not expire and it remains active until you explicitly cancel it using the
* CancelCapacityReservationFleet action.
*
* You can't specify RemoveEndDate and EndDate in the same request.
*
* The ID of the Capacity Reservation Fleet to modify.
*
* The ID of the Capacity Reservation Fleet to modify.
*
* The ID of the Capacity Reservation Fleet to modify.
*
* The total number of capacity units to be reserved by the Capacity Reservation Fleet. This value, together with
* the instance type weights that you assign to each instance type used by the Fleet determine the number of
* instances for which the Fleet reserves capacity. Both values are based on units that make sense for your
* workload. For more information, see Total target
* capacity in the Amazon EC2 User Guide.
*
* The total number of capacity units to be reserved by the Capacity Reservation Fleet. This value, together with
* the instance type weights that you assign to each instance type used by the Fleet determine the number of
* instances for which the Fleet reserves capacity. Both values are based on units that make sense for your
* workload. For more information, see Total target
* capacity in the Amazon EC2 User Guide.
*
* The total number of capacity units to be reserved by the Capacity Reservation Fleet. This value, together with
* the instance type weights that you assign to each instance type used by the Fleet determine the number of
* instances for which the Fleet reserves capacity. Both values are based on units that make sense for your
* workload. For more information, see Total target
* capacity in the Amazon EC2 User Guide.
*
* The date and time at which the Capacity Reservation Fleet expires. When the Capacity Reservation Fleet expires,
* its state changes to
* The Capacity Reservation Fleet expires within an hour after the specified time. For example, if you specify
*
* You can't specify EndDate and RemoveEndDate in the same request.
* expired
and all of the Capacity Reservations in the Fleet expire.
* 5/31/2019
, 13:30:55
, the Capacity Reservation Fleet is guaranteed to expire between
* 13:30:55
and 14:30:55
on 5/31/2019
.
* expired
and all of the Capacity Reservations in the Fleet expire.
* 5/31/2019
, 13:30:55
, the Capacity Reservation Fleet is guaranteed to expire between
* 13:30:55
and 14:30:55
on 5/31/2019
.
* expired
and all of the Capacity Reservations in the Fleet
* expire.
* The Capacity Reservation Fleet expires within an hour after the specified time. For example, if you
* specify 5/31/2019
, 13:30:55
, the Capacity Reservation Fleet is guaranteed to
* expire between 13:30:55
and 14:30:55
on 5/31/2019
.
*
* You can't specify EndDate and RemoveEndDate in the same request. */ public void setEndDate(java.util.Date endDate) { this.endDate = endDate; } /** *
* The date and time at which the Capacity Reservation Fleet expires. When the Capacity Reservation Fleet expires,
* its state changes to expired
and all of the Capacity Reservations in the Fleet expire.
*
* The Capacity Reservation Fleet expires within an hour after the specified time. For example, if you specify
* 5/31/2019
, 13:30:55
, the Capacity Reservation Fleet is guaranteed to expire between
* 13:30:55
and 14:30:55
on 5/31/2019
.
*
* You can't specify EndDate and RemoveEndDate in the same request. *
* * @return The date and time at which the Capacity Reservation Fleet expires. When the Capacity Reservation Fleet * expires, its state changes toexpired
and all of the Capacity Reservations in the Fleet
* expire.
*
* The Capacity Reservation Fleet expires within an hour after the specified time. For example, if you
* specify 5/31/2019
, 13:30:55
, the Capacity Reservation Fleet is guaranteed to
* expire between 13:30:55
and 14:30:55
on 5/31/2019
.
*
* You can't specify EndDate and RemoveEndDate in the same request. */ public java.util.Date getEndDate() { return this.endDate; } /** *
* The date and time at which the Capacity Reservation Fleet expires. When the Capacity Reservation Fleet expires,
* its state changes to expired
and all of the Capacity Reservations in the Fleet expire.
*
* The Capacity Reservation Fleet expires within an hour after the specified time. For example, if you specify
* 5/31/2019
, 13:30:55
, the Capacity Reservation Fleet is guaranteed to expire between
* 13:30:55
and 14:30:55
on 5/31/2019
.
*
* You can't specify EndDate and RemoveEndDate in the same request. *
* * @param endDate * The date and time at which the Capacity Reservation Fleet expires. When the Capacity Reservation Fleet * expires, its state changes toexpired
and all of the Capacity Reservations in the Fleet
* expire.
*
* The Capacity Reservation Fleet expires within an hour after the specified time. For example, if you
* specify 5/31/2019
, 13:30:55
, the Capacity Reservation Fleet is guaranteed to
* expire between 13:30:55
and 14:30:55
on 5/31/2019
.
*
* You can't specify EndDate and RemoveEndDate in the same request. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyCapacityReservationFleetRequest withEndDate(java.util.Date endDate) { setEndDate(endDate); return this; } /** *
* Indicates whether to remove the end date from the Capacity Reservation Fleet. If you remove the end date, the * Capacity Reservation Fleet does not expire and it remains active until you explicitly cancel it using the * CancelCapacityReservationFleet action. *
** You can't specify RemoveEndDate and EndDate in the same request. *
* * @param removeEndDate * Indicates whether to remove the end date from the Capacity Reservation Fleet. If you remove the end date, * the Capacity Reservation Fleet does not expire and it remains active until you explicitly cancel it using * the CancelCapacityReservationFleet action. ** You can't specify RemoveEndDate and EndDate in the same request. */ public void setRemoveEndDate(Boolean removeEndDate) { this.removeEndDate = removeEndDate; } /** *
* Indicates whether to remove the end date from the Capacity Reservation Fleet. If you remove the end date, the * Capacity Reservation Fleet does not expire and it remains active until you explicitly cancel it using the * CancelCapacityReservationFleet action. *
** You can't specify RemoveEndDate and EndDate in the same request. *
* * @return Indicates whether to remove the end date from the Capacity Reservation Fleet. If you remove the end date, * the Capacity Reservation Fleet does not expire and it remains active until you explicitly cancel it using * the CancelCapacityReservationFleet action. ** You can't specify RemoveEndDate and EndDate in the same request. */ public Boolean getRemoveEndDate() { return this.removeEndDate; } /** *
* Indicates whether to remove the end date from the Capacity Reservation Fleet. If you remove the end date, the * Capacity Reservation Fleet does not expire and it remains active until you explicitly cancel it using the * CancelCapacityReservationFleet action. *
** You can't specify RemoveEndDate and EndDate in the same request. *
* * @param removeEndDate * Indicates whether to remove the end date from the Capacity Reservation Fleet. If you remove the end date, * the Capacity Reservation Fleet does not expire and it remains active until you explicitly cancel it using * the CancelCapacityReservationFleet action. ** You can't specify RemoveEndDate and EndDate in the same request. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyCapacityReservationFleetRequest withRemoveEndDate(Boolean removeEndDate) { setRemoveEndDate(removeEndDate); return this; } /** *
* Indicates whether to remove the end date from the Capacity Reservation Fleet. If you remove the end date, the * Capacity Reservation Fleet does not expire and it remains active until you explicitly cancel it using the * CancelCapacityReservationFleet action. *
** You can't specify RemoveEndDate and EndDate in the same request. *
* * @return Indicates whether to remove the end date from the Capacity Reservation Fleet. If you remove the end date, * the Capacity Reservation Fleet does not expire and it remains active until you explicitly cancel it using * the CancelCapacityReservationFleet action. *
* You can't specify RemoveEndDate and EndDate in the same request.
*/
public Boolean isRemoveEndDate() {
return this.removeEndDate;
}
/**
* This method is intended for internal use only. Returns the marshaled request configured with additional
* parameters to enable operation dry-run.
*/
@Override
public Request