Struct aws_sdk_ec2::model::capacity_reservation_specification_response::Builder [−][src]
#[non_exhaustive]pub struct Builder { /* fields omitted */ }
Expand description
A builder for CapacityReservationSpecificationResponse
Implementations
Describes the instance's Capacity Reservation preferences. Possible preferences include:
-
open
- The instance can run in anyopen
Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). -
none
- The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.
pub fn set_capacity_reservation_preference(
self,
input: Option<CapacityReservationPreference>
) -> Self
pub fn set_capacity_reservation_preference(
self,
input: Option<CapacityReservationPreference>
) -> Self
Describes the instance's Capacity Reservation preferences. Possible preferences include:
-
open
- The instance can run in anyopen
Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). -
none
- The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.
Information about the targeted Capacity Reservation or Capacity Reservation group.
pub fn set_capacity_reservation_target(
self,
input: Option<CapacityReservationTargetResponse>
) -> Self
pub fn set_capacity_reservation_target(
self,
input: Option<CapacityReservationTargetResponse>
) -> Self
Information about the targeted Capacity Reservation or Capacity Reservation group.
Consumes the builder and constructs a CapacityReservationSpecificationResponse
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl UnwindSafe for Builder
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more