Struct aws_sdk_ec2::types::builders::LaunchTemplateCapacityReservationSpecificationResponseBuilder
source · #[non_exhaustive]pub struct LaunchTemplateCapacityReservationSpecificationResponseBuilder { /* private fields */ }
Expand description
A builder for LaunchTemplateCapacityReservationSpecificationResponse
.
Implementations§
source§impl LaunchTemplateCapacityReservationSpecificationResponseBuilder
impl LaunchTemplateCapacityReservationSpecificationResponseBuilder
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 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
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 in On-Demand capacity.
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 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 target 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 target 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 target Capacity Reservation or Capacity Reservation group.
sourcepub fn build(self) -> LaunchTemplateCapacityReservationSpecificationResponse
pub fn build(self) -> LaunchTemplateCapacityReservationSpecificationResponse
Consumes the builder and constructs a LaunchTemplateCapacityReservationSpecificationResponse
.
Trait Implementations§
source§impl Clone for LaunchTemplateCapacityReservationSpecificationResponseBuilder
impl Clone for LaunchTemplateCapacityReservationSpecificationResponseBuilder
source§fn clone(&self) -> LaunchTemplateCapacityReservationSpecificationResponseBuilder
fn clone(&self) -> LaunchTemplateCapacityReservationSpecificationResponseBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for LaunchTemplateCapacityReservationSpecificationResponseBuilder
impl Default for LaunchTemplateCapacityReservationSpecificationResponseBuilder
source§fn default() -> LaunchTemplateCapacityReservationSpecificationResponseBuilder
fn default() -> LaunchTemplateCapacityReservationSpecificationResponseBuilder
source§impl PartialEq for LaunchTemplateCapacityReservationSpecificationResponseBuilder
impl PartialEq for LaunchTemplateCapacityReservationSpecificationResponseBuilder
source§fn eq(
&self,
other: &LaunchTemplateCapacityReservationSpecificationResponseBuilder
) -> bool
fn eq( &self, other: &LaunchTemplateCapacityReservationSpecificationResponseBuilder ) -> bool
self
and other
values to be equal, and is used
by ==
.