#[non_exhaustive]pub struct CapacityReservationSpecificationResponseBuilder { /* private fields */ }Expand description
A builder for CapacityReservationSpecificationResponse.
Implementations§
source§impl CapacityReservationSpecificationResponseBuilder
impl CapacityReservationSpecificationResponseBuilder
sourcepub fn capacity_reservation_preference(
self,
input: CapacityReservationPreference,
) -> Self
pub fn capacity_reservation_preference( self, input: CapacityReservationPreference, ) -> Self
Describes the instance's Capacity Reservation preferences. Possible preferences include:
-
open- The instance can run in anyopenCapacity 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.
sourcepub 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 anyopenCapacity 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.
sourcepub fn get_capacity_reservation_preference(
&self,
) -> &Option<CapacityReservationPreference>
pub fn get_capacity_reservation_preference( &self, ) -> &Option<CapacityReservationPreference>
Describes the instance's Capacity Reservation preferences. Possible preferences include:
-
open- The instance can run in anyopenCapacity 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.
sourcepub fn capacity_reservation_target(
self,
input: CapacityReservationTargetResponse,
) -> Self
pub fn capacity_reservation_target( self, input: CapacityReservationTargetResponse, ) -> Self
Information about the targeted Capacity Reservation or Capacity Reservation group.
sourcepub 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.
sourcepub fn get_capacity_reservation_target(
&self,
) -> &Option<CapacityReservationTargetResponse>
pub fn get_capacity_reservation_target( &self, ) -> &Option<CapacityReservationTargetResponse>
Information about the targeted Capacity Reservation or Capacity Reservation group.
sourcepub fn build(self) -> CapacityReservationSpecificationResponse
pub fn build(self) -> CapacityReservationSpecificationResponse
Consumes the builder and constructs a CapacityReservationSpecificationResponse.
Trait Implementations§
source§impl Clone for CapacityReservationSpecificationResponseBuilder
impl Clone for CapacityReservationSpecificationResponseBuilder
source§fn clone(&self) -> CapacityReservationSpecificationResponseBuilder
fn clone(&self) -> CapacityReservationSpecificationResponseBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CapacityReservationSpecificationResponseBuilder
impl Default for CapacityReservationSpecificationResponseBuilder
source§fn default() -> CapacityReservationSpecificationResponseBuilder
fn default() -> CapacityReservationSpecificationResponseBuilder
source§impl PartialEq for CapacityReservationSpecificationResponseBuilder
impl PartialEq for CapacityReservationSpecificationResponseBuilder
source§fn eq(&self, other: &CapacityReservationSpecificationResponseBuilder) -> bool
fn eq(&self, other: &CapacityReservationSpecificationResponseBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CapacityReservationSpecificationResponseBuilder
Auto Trait Implementations§
impl Freeze for CapacityReservationSpecificationResponseBuilder
impl RefUnwindSafe for CapacityReservationSpecificationResponseBuilder
impl Send for CapacityReservationSpecificationResponseBuilder
impl Sync for CapacityReservationSpecificationResponseBuilder
impl Unpin for CapacityReservationSpecificationResponseBuilder
impl UnwindSafe for CapacityReservationSpecificationResponseBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more