#[non_exhaustive]pub struct CapacityReservationSpecificationBuilder { /* private fields */ }
Expand description
A builder for CapacityReservationSpecification
.
Implementations§
source§impl CapacityReservationSpecificationBuilder
impl CapacityReservationSpecificationBuilder
sourcepub fn capacity_reservation_preference(
self,
input: CapacityReservationPreference
) -> Self
pub fn capacity_reservation_preference( self, input: CapacityReservationPreference ) -> Self
Indicates 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 as an On-Demand Instance.
sourcepub fn set_capacity_reservation_preference(
self,
input: Option<CapacityReservationPreference>
) -> Self
pub fn set_capacity_reservation_preference( self, input: Option<CapacityReservationPreference> ) -> Self
Indicates 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 as an On-Demand Instance.
sourcepub fn get_capacity_reservation_preference(
&self
) -> &Option<CapacityReservationPreference>
pub fn get_capacity_reservation_preference( &self ) -> &Option<CapacityReservationPreference>
Indicates 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 as an On-Demand Instance.
sourcepub fn capacity_reservation_target(
self,
input: CapacityReservationTarget
) -> Self
pub fn capacity_reservation_target( self, input: CapacityReservationTarget ) -> Self
Information about the target Capacity Reservation or Capacity Reservation group.
sourcepub fn set_capacity_reservation_target(
self,
input: Option<CapacityReservationTarget>
) -> Self
pub fn set_capacity_reservation_target( self, input: Option<CapacityReservationTarget> ) -> Self
Information about the target Capacity Reservation or Capacity Reservation group.
sourcepub fn get_capacity_reservation_target(
&self
) -> &Option<CapacityReservationTarget>
pub fn get_capacity_reservation_target( &self ) -> &Option<CapacityReservationTarget>
Information about the target Capacity Reservation or Capacity Reservation group.
sourcepub fn build(self) -> CapacityReservationSpecification
pub fn build(self) -> CapacityReservationSpecification
Consumes the builder and constructs a CapacityReservationSpecification
.
Trait Implementations§
source§impl Clone for CapacityReservationSpecificationBuilder
impl Clone for CapacityReservationSpecificationBuilder
source§fn clone(&self) -> CapacityReservationSpecificationBuilder
fn clone(&self) -> CapacityReservationSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CapacityReservationSpecificationBuilder
impl Default for CapacityReservationSpecificationBuilder
source§fn default() -> CapacityReservationSpecificationBuilder
fn default() -> CapacityReservationSpecificationBuilder
source§impl PartialEq<CapacityReservationSpecificationBuilder> for CapacityReservationSpecificationBuilder
impl PartialEq<CapacityReservationSpecificationBuilder> for CapacityReservationSpecificationBuilder
source§fn eq(&self, other: &CapacityReservationSpecificationBuilder) -> bool
fn eq(&self, other: &CapacityReservationSpecificationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.