Struct aws_sdk_ec2::operation::modify_capacity_reservation_fleet::builders::ModifyCapacityReservationFleetInputBuilder
source · #[non_exhaustive]pub struct ModifyCapacityReservationFleetInputBuilder { /* private fields */ }
Expand description
A builder for ModifyCapacityReservationFleetInput
.
Implementations§
source§impl ModifyCapacityReservationFleetInputBuilder
impl ModifyCapacityReservationFleetInputBuilder
sourcepub fn capacity_reservation_fleet_id(self, input: impl Into<String>) -> Self
pub fn capacity_reservation_fleet_id(self, input: impl Into<String>) -> Self
The ID of the Capacity Reservation Fleet to modify.
sourcepub fn set_capacity_reservation_fleet_id(self, input: Option<String>) -> Self
pub fn set_capacity_reservation_fleet_id(self, input: Option<String>) -> Self
The ID of the Capacity Reservation Fleet to modify.
sourcepub fn total_target_capacity(self, input: i32) -> Self
pub fn total_target_capacity(self, input: i32) -> Self
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.
sourcepub fn set_total_target_capacity(self, input: Option<i32>) -> Self
pub fn set_total_target_capacity(self, input: Option<i32>) -> Self
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.
sourcepub fn end_date(self, input: DateTime) -> Self
pub fn end_date(self, input: DateTime) -> Self
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.
sourcepub fn set_end_date(self, input: Option<DateTime>) -> Self
pub fn set_end_date(self, input: Option<DateTime>) -> Self
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.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn remove_end_date(self, input: bool) -> Self
pub fn remove_end_date(self, input: bool) -> Self
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.
sourcepub fn set_remove_end_date(self, input: Option<bool>) -> Self
pub fn set_remove_end_date(self, input: Option<bool>) -> Self
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.
sourcepub fn build(self) -> Result<ModifyCapacityReservationFleetInput, BuildError>
pub fn build(self) -> Result<ModifyCapacityReservationFleetInput, BuildError>
Consumes the builder and constructs a ModifyCapacityReservationFleetInput
.
Trait Implementations§
source§impl Clone for ModifyCapacityReservationFleetInputBuilder
impl Clone for ModifyCapacityReservationFleetInputBuilder
source§fn clone(&self) -> ModifyCapacityReservationFleetInputBuilder
fn clone(&self) -> ModifyCapacityReservationFleetInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ModifyCapacityReservationFleetInputBuilder
impl Default for ModifyCapacityReservationFleetInputBuilder
source§fn default() -> ModifyCapacityReservationFleetInputBuilder
fn default() -> ModifyCapacityReservationFleetInputBuilder
source§impl PartialEq<ModifyCapacityReservationFleetInputBuilder> for ModifyCapacityReservationFleetInputBuilder
impl PartialEq<ModifyCapacityReservationFleetInputBuilder> for ModifyCapacityReservationFleetInputBuilder
source§fn eq(&self, other: &ModifyCapacityReservationFleetInputBuilder) -> bool
fn eq(&self, other: &ModifyCapacityReservationFleetInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.