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 ==.