Struct aws_sdk_securityhub::types::builders::AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
source · #[non_exhaustive]pub struct AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder { /* private fields */ }Expand description
Implementations§
source§impl AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
impl AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
sourcepub fn capacity_reservation_preference(self, input: impl Into<String>) -> Self
pub fn capacity_reservation_preference(self, input: impl Into<String>) -> Self
Indicates the instance's Capacity Reservation preferences. If equal to open, the instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). If equal to 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<String>) -> Self
pub fn set_capacity_reservation_preference(self, input: Option<String>) -> Self
Indicates the instance's Capacity Reservation preferences. If equal to open, the instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). If equal to 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<String>
pub fn get_capacity_reservation_preference(&self) -> &Option<String>
Indicates the instance's Capacity Reservation preferences. If equal to open, the instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). If equal to 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: AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails,
) -> Self
pub fn capacity_reservation_target( self, input: AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails, ) -> Self
Specifies a target Capacity Reservation.
sourcepub fn set_capacity_reservation_target(
self,
input: Option<AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails>,
) -> Self
pub fn set_capacity_reservation_target( self, input: Option<AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails>, ) -> Self
Specifies a target Capacity Reservation.
sourcepub fn get_capacity_reservation_target(
&self,
) -> &Option<AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails>
pub fn get_capacity_reservation_target( &self, ) -> &Option<AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails>
Specifies a target Capacity Reservation.
sourcepub fn build(
self,
) -> AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
pub fn build( self, ) -> AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails
Consumes the builder and constructs a AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetails.
Trait Implementations§
source§impl Clone for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
impl Clone for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
source§fn clone(
&self,
) -> AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
fn clone( &self, ) -> AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
impl Default for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
source§fn default() -> AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
fn default() -> AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
source§impl PartialEq for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
impl PartialEq for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
source§fn eq(
&self,
other: &AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder,
) -> bool
fn eq( &self, other: &AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder, ) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
Auto Trait Implementations§
impl Freeze for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
impl RefUnwindSafe for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
impl Send for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
impl Sync for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
impl Unpin for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
impl UnwindSafe for AwsEc2LaunchTemplateDataCapacityReservationSpecificationDetailsBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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