#[non_exhaustive]pub struct ServiceManagedEc2InstanceCapabilitiesBuilder { /* private fields */ }Expand description
A builder for ServiceManagedEc2InstanceCapabilities.
Implementations§
source§impl ServiceManagedEc2InstanceCapabilitiesBuilder
impl ServiceManagedEc2InstanceCapabilitiesBuilder
sourcepub fn v_cpu_count(self, input: VCpuCountRange) -> Self
pub fn v_cpu_count(self, input: VCpuCountRange) -> Self
The amount of vCPU to require for instances in this fleet.
This field is required.sourcepub fn set_v_cpu_count(self, input: Option<VCpuCountRange>) -> Self
pub fn set_v_cpu_count(self, input: Option<VCpuCountRange>) -> Self
The amount of vCPU to require for instances in this fleet.
sourcepub fn get_v_cpu_count(&self) -> &Option<VCpuCountRange>
pub fn get_v_cpu_count(&self) -> &Option<VCpuCountRange>
The amount of vCPU to require for instances in this fleet.
sourcepub fn memory_mib(self, input: MemoryMiBRange) -> Self
pub fn memory_mib(self, input: MemoryMiBRange) -> Self
The memory, as MiB, for the Amazon EC2 instance type.
This field is required.sourcepub fn set_memory_mib(self, input: Option<MemoryMiBRange>) -> Self
pub fn set_memory_mib(self, input: Option<MemoryMiBRange>) -> Self
The memory, as MiB, for the Amazon EC2 instance type.
sourcepub fn get_memory_mib(&self) -> &Option<MemoryMiBRange>
pub fn get_memory_mib(&self) -> &Option<MemoryMiBRange>
The memory, as MiB, for the Amazon EC2 instance type.
sourcepub fn os_family(self, input: ServiceManagedFleetOperatingSystemFamily) -> Self
pub fn os_family(self, input: ServiceManagedFleetOperatingSystemFamily) -> Self
The operating system (OS) family.
This field is required.sourcepub fn set_os_family(
self,
input: Option<ServiceManagedFleetOperatingSystemFamily>
) -> Self
pub fn set_os_family( self, input: Option<ServiceManagedFleetOperatingSystemFamily> ) -> Self
The operating system (OS) family.
sourcepub fn get_os_family(&self) -> &Option<ServiceManagedFleetOperatingSystemFamily>
pub fn get_os_family(&self) -> &Option<ServiceManagedFleetOperatingSystemFamily>
The operating system (OS) family.
sourcepub fn cpu_architecture_type(self, input: CpuArchitectureType) -> Self
pub fn cpu_architecture_type(self, input: CpuArchitectureType) -> Self
The CPU architecture type.
This field is required.sourcepub fn set_cpu_architecture_type(
self,
input: Option<CpuArchitectureType>
) -> Self
pub fn set_cpu_architecture_type( self, input: Option<CpuArchitectureType> ) -> Self
The CPU architecture type.
sourcepub fn get_cpu_architecture_type(&self) -> &Option<CpuArchitectureType>
pub fn get_cpu_architecture_type(&self) -> &Option<CpuArchitectureType>
The CPU architecture type.
sourcepub fn root_ebs_volume(self, input: Ec2EbsVolume) -> Self
pub fn root_ebs_volume(self, input: Ec2EbsVolume) -> Self
The root EBS volume.
sourcepub fn set_root_ebs_volume(self, input: Option<Ec2EbsVolume>) -> Self
pub fn set_root_ebs_volume(self, input: Option<Ec2EbsVolume>) -> Self
The root EBS volume.
sourcepub fn get_root_ebs_volume(&self) -> &Option<Ec2EbsVolume>
pub fn get_root_ebs_volume(&self) -> &Option<Ec2EbsVolume>
The root EBS volume.
sourcepub fn allowed_instance_types(self, input: impl Into<String>) -> Self
pub fn allowed_instance_types(self, input: impl Into<String>) -> Self
Appends an item to allowed_instance_types.
To override the contents of this collection use set_allowed_instance_types.
The allowable Amazon EC2 instance types.
sourcepub fn set_allowed_instance_types(self, input: Option<Vec<String>>) -> Self
pub fn set_allowed_instance_types(self, input: Option<Vec<String>>) -> Self
The allowable Amazon EC2 instance types.
sourcepub fn get_allowed_instance_types(&self) -> &Option<Vec<String>>
pub fn get_allowed_instance_types(&self) -> &Option<Vec<String>>
The allowable Amazon EC2 instance types.
sourcepub fn excluded_instance_types(self, input: impl Into<String>) -> Self
pub fn excluded_instance_types(self, input: impl Into<String>) -> Self
Appends an item to excluded_instance_types.
To override the contents of this collection use set_excluded_instance_types.
The instance types to exclude from the fleet.
sourcepub fn set_excluded_instance_types(self, input: Option<Vec<String>>) -> Self
pub fn set_excluded_instance_types(self, input: Option<Vec<String>>) -> Self
The instance types to exclude from the fleet.
sourcepub fn get_excluded_instance_types(&self) -> &Option<Vec<String>>
pub fn get_excluded_instance_types(&self) -> &Option<Vec<String>>
The instance types to exclude from the fleet.
sourcepub fn custom_amounts(self, input: FleetAmountCapability) -> Self
pub fn custom_amounts(self, input: FleetAmountCapability) -> Self
Appends an item to custom_amounts.
To override the contents of this collection use set_custom_amounts.
The custom capability amounts to require for instances in this fleet.
sourcepub fn set_custom_amounts(
self,
input: Option<Vec<FleetAmountCapability>>
) -> Self
pub fn set_custom_amounts( self, input: Option<Vec<FleetAmountCapability>> ) -> Self
The custom capability amounts to require for instances in this fleet.
sourcepub fn get_custom_amounts(&self) -> &Option<Vec<FleetAmountCapability>>
pub fn get_custom_amounts(&self) -> &Option<Vec<FleetAmountCapability>>
The custom capability amounts to require for instances in this fleet.
sourcepub fn custom_attributes(self, input: FleetAttributeCapability) -> Self
pub fn custom_attributes(self, input: FleetAttributeCapability) -> Self
Appends an item to custom_attributes.
To override the contents of this collection use set_custom_attributes.
The custom capability attributes to require for instances in this fleet.
sourcepub fn set_custom_attributes(
self,
input: Option<Vec<FleetAttributeCapability>>
) -> Self
pub fn set_custom_attributes( self, input: Option<Vec<FleetAttributeCapability>> ) -> Self
The custom capability attributes to require for instances in this fleet.
sourcepub fn get_custom_attributes(&self) -> &Option<Vec<FleetAttributeCapability>>
pub fn get_custom_attributes(&self) -> &Option<Vec<FleetAttributeCapability>>
The custom capability attributes to require for instances in this fleet.
sourcepub fn build(self) -> Result<ServiceManagedEc2InstanceCapabilities, BuildError>
pub fn build(self) -> Result<ServiceManagedEc2InstanceCapabilities, BuildError>
Consumes the builder and constructs a ServiceManagedEc2InstanceCapabilities.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ServiceManagedEc2InstanceCapabilitiesBuilder
impl Clone for ServiceManagedEc2InstanceCapabilitiesBuilder
source§fn clone(&self) -> ServiceManagedEc2InstanceCapabilitiesBuilder
fn clone(&self) -> ServiceManagedEc2InstanceCapabilitiesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ServiceManagedEc2InstanceCapabilitiesBuilder
impl Default for ServiceManagedEc2InstanceCapabilitiesBuilder
source§fn default() -> ServiceManagedEc2InstanceCapabilitiesBuilder
fn default() -> ServiceManagedEc2InstanceCapabilitiesBuilder
source§impl PartialEq for ServiceManagedEc2InstanceCapabilitiesBuilder
impl PartialEq for ServiceManagedEc2InstanceCapabilitiesBuilder
source§fn eq(&self, other: &ServiceManagedEc2InstanceCapabilitiesBuilder) -> bool
fn eq(&self, other: &ServiceManagedEc2InstanceCapabilitiesBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ServiceManagedEc2InstanceCapabilitiesBuilder
Auto Trait Implementations§
impl Freeze for ServiceManagedEc2InstanceCapabilitiesBuilder
impl RefUnwindSafe for ServiceManagedEc2InstanceCapabilitiesBuilder
impl Send for ServiceManagedEc2InstanceCapabilitiesBuilder
impl Sync for ServiceManagedEc2InstanceCapabilitiesBuilder
impl Unpin for ServiceManagedEc2InstanceCapabilitiesBuilder
impl UnwindSafe for ServiceManagedEc2InstanceCapabilitiesBuilder
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