Struct aws_sdk_ec2::types::builders::InstanceTypeInfoBuilder
source · #[non_exhaustive]pub struct InstanceTypeInfoBuilder { /* private fields */ }
Expand description
A builder for InstanceTypeInfo
.
Implementations§
source§impl InstanceTypeInfoBuilder
impl InstanceTypeInfoBuilder
sourcepub fn instance_type(self, input: InstanceType) -> Self
pub fn instance_type(self, input: InstanceType) -> Self
The instance type. For more information, see Instance types in the Amazon EC2 User Guide.
sourcepub fn set_instance_type(self, input: Option<InstanceType>) -> Self
pub fn set_instance_type(self, input: Option<InstanceType>) -> Self
The instance type. For more information, see Instance types in the Amazon EC2 User Guide.
sourcepub fn get_instance_type(&self) -> &Option<InstanceType>
pub fn get_instance_type(&self) -> &Option<InstanceType>
The instance type. For more information, see Instance types in the Amazon EC2 User Guide.
sourcepub fn current_generation(self, input: bool) -> Self
pub fn current_generation(self, input: bool) -> Self
Indicates whether the instance type is current generation.
sourcepub fn set_current_generation(self, input: Option<bool>) -> Self
pub fn set_current_generation(self, input: Option<bool>) -> Self
Indicates whether the instance type is current generation.
sourcepub fn get_current_generation(&self) -> &Option<bool>
pub fn get_current_generation(&self) -> &Option<bool>
Indicates whether the instance type is current generation.
sourcepub fn free_tier_eligible(self, input: bool) -> Self
pub fn free_tier_eligible(self, input: bool) -> Self
Indicates whether the instance type is eligible for the free tier.
sourcepub fn set_free_tier_eligible(self, input: Option<bool>) -> Self
pub fn set_free_tier_eligible(self, input: Option<bool>) -> Self
Indicates whether the instance type is eligible for the free tier.
sourcepub fn get_free_tier_eligible(&self) -> &Option<bool>
pub fn get_free_tier_eligible(&self) -> &Option<bool>
Indicates whether the instance type is eligible for the free tier.
sourcepub fn supported_usage_classes(self, input: UsageClassType) -> Self
pub fn supported_usage_classes(self, input: UsageClassType) -> Self
Appends an item to supported_usage_classes
.
To override the contents of this collection use set_supported_usage_classes
.
Indicates whether the instance type is offered for spot or On-Demand.
sourcepub fn set_supported_usage_classes(
self,
input: Option<Vec<UsageClassType>>
) -> Self
pub fn set_supported_usage_classes( self, input: Option<Vec<UsageClassType>> ) -> Self
Indicates whether the instance type is offered for spot or On-Demand.
sourcepub fn get_supported_usage_classes(&self) -> &Option<Vec<UsageClassType>>
pub fn get_supported_usage_classes(&self) -> &Option<Vec<UsageClassType>>
Indicates whether the instance type is offered for spot or On-Demand.
sourcepub fn supported_root_device_types(self, input: RootDeviceType) -> Self
pub fn supported_root_device_types(self, input: RootDeviceType) -> Self
Appends an item to supported_root_device_types
.
To override the contents of this collection use set_supported_root_device_types
.
The supported root device types.
sourcepub fn set_supported_root_device_types(
self,
input: Option<Vec<RootDeviceType>>
) -> Self
pub fn set_supported_root_device_types( self, input: Option<Vec<RootDeviceType>> ) -> Self
The supported root device types.
sourcepub fn get_supported_root_device_types(&self) -> &Option<Vec<RootDeviceType>>
pub fn get_supported_root_device_types(&self) -> &Option<Vec<RootDeviceType>>
The supported root device types.
sourcepub fn supported_virtualization_types(self, input: VirtualizationType) -> Self
pub fn supported_virtualization_types(self, input: VirtualizationType) -> Self
Appends an item to supported_virtualization_types
.
To override the contents of this collection use set_supported_virtualization_types
.
The supported virtualization types.
sourcepub fn set_supported_virtualization_types(
self,
input: Option<Vec<VirtualizationType>>
) -> Self
pub fn set_supported_virtualization_types( self, input: Option<Vec<VirtualizationType>> ) -> Self
The supported virtualization types.
sourcepub fn get_supported_virtualization_types(
&self
) -> &Option<Vec<VirtualizationType>>
pub fn get_supported_virtualization_types( &self ) -> &Option<Vec<VirtualizationType>>
The supported virtualization types.
sourcepub fn bare_metal(self, input: bool) -> Self
pub fn bare_metal(self, input: bool) -> Self
Indicates whether the instance is a bare metal instance type.
sourcepub fn set_bare_metal(self, input: Option<bool>) -> Self
pub fn set_bare_metal(self, input: Option<bool>) -> Self
Indicates whether the instance is a bare metal instance type.
sourcepub fn get_bare_metal(&self) -> &Option<bool>
pub fn get_bare_metal(&self) -> &Option<bool>
Indicates whether the instance is a bare metal instance type.
sourcepub fn hypervisor(self, input: InstanceTypeHypervisor) -> Self
pub fn hypervisor(self, input: InstanceTypeHypervisor) -> Self
The hypervisor for the instance type.
sourcepub fn set_hypervisor(self, input: Option<InstanceTypeHypervisor>) -> Self
pub fn set_hypervisor(self, input: Option<InstanceTypeHypervisor>) -> Self
The hypervisor for the instance type.
sourcepub fn get_hypervisor(&self) -> &Option<InstanceTypeHypervisor>
pub fn get_hypervisor(&self) -> &Option<InstanceTypeHypervisor>
The hypervisor for the instance type.
sourcepub fn processor_info(self, input: ProcessorInfo) -> Self
pub fn processor_info(self, input: ProcessorInfo) -> Self
Describes the processor.
sourcepub fn set_processor_info(self, input: Option<ProcessorInfo>) -> Self
pub fn set_processor_info(self, input: Option<ProcessorInfo>) -> Self
Describes the processor.
sourcepub fn get_processor_info(&self) -> &Option<ProcessorInfo>
pub fn get_processor_info(&self) -> &Option<ProcessorInfo>
Describes the processor.
sourcepub fn v_cpu_info(self, input: VCpuInfo) -> Self
pub fn v_cpu_info(self, input: VCpuInfo) -> Self
Describes the vCPU configurations for the instance type.
sourcepub fn set_v_cpu_info(self, input: Option<VCpuInfo>) -> Self
pub fn set_v_cpu_info(self, input: Option<VCpuInfo>) -> Self
Describes the vCPU configurations for the instance type.
sourcepub fn get_v_cpu_info(&self) -> &Option<VCpuInfo>
pub fn get_v_cpu_info(&self) -> &Option<VCpuInfo>
Describes the vCPU configurations for the instance type.
sourcepub fn memory_info(self, input: MemoryInfo) -> Self
pub fn memory_info(self, input: MemoryInfo) -> Self
Describes the memory for the instance type.
sourcepub fn set_memory_info(self, input: Option<MemoryInfo>) -> Self
pub fn set_memory_info(self, input: Option<MemoryInfo>) -> Self
Describes the memory for the instance type.
sourcepub fn get_memory_info(&self) -> &Option<MemoryInfo>
pub fn get_memory_info(&self) -> &Option<MemoryInfo>
Describes the memory for the instance type.
sourcepub fn instance_storage_supported(self, input: bool) -> Self
pub fn instance_storage_supported(self, input: bool) -> Self
Indicates whether instance storage is supported.
sourcepub fn set_instance_storage_supported(self, input: Option<bool>) -> Self
pub fn set_instance_storage_supported(self, input: Option<bool>) -> Self
Indicates whether instance storage is supported.
sourcepub fn get_instance_storage_supported(&self) -> &Option<bool>
pub fn get_instance_storage_supported(&self) -> &Option<bool>
Indicates whether instance storage is supported.
sourcepub fn instance_storage_info(self, input: InstanceStorageInfo) -> Self
pub fn instance_storage_info(self, input: InstanceStorageInfo) -> Self
Describes the instance storage for the instance type.
sourcepub fn set_instance_storage_info(
self,
input: Option<InstanceStorageInfo>
) -> Self
pub fn set_instance_storage_info( self, input: Option<InstanceStorageInfo> ) -> Self
Describes the instance storage for the instance type.
sourcepub fn get_instance_storage_info(&self) -> &Option<InstanceStorageInfo>
pub fn get_instance_storage_info(&self) -> &Option<InstanceStorageInfo>
Describes the instance storage for the instance type.
sourcepub fn ebs_info(self, input: EbsInfo) -> Self
pub fn ebs_info(self, input: EbsInfo) -> Self
Describes the Amazon EBS settings for the instance type.
sourcepub fn set_ebs_info(self, input: Option<EbsInfo>) -> Self
pub fn set_ebs_info(self, input: Option<EbsInfo>) -> Self
Describes the Amazon EBS settings for the instance type.
sourcepub fn get_ebs_info(&self) -> &Option<EbsInfo>
pub fn get_ebs_info(&self) -> &Option<EbsInfo>
Describes the Amazon EBS settings for the instance type.
sourcepub fn network_info(self, input: NetworkInfo) -> Self
pub fn network_info(self, input: NetworkInfo) -> Self
Describes the network settings for the instance type.
sourcepub fn set_network_info(self, input: Option<NetworkInfo>) -> Self
pub fn set_network_info(self, input: Option<NetworkInfo>) -> Self
Describes the network settings for the instance type.
sourcepub fn get_network_info(&self) -> &Option<NetworkInfo>
pub fn get_network_info(&self) -> &Option<NetworkInfo>
Describes the network settings for the instance type.
sourcepub fn gpu_info(self, input: GpuInfo) -> Self
pub fn gpu_info(self, input: GpuInfo) -> Self
Describes the GPU accelerator settings for the instance type.
sourcepub fn set_gpu_info(self, input: Option<GpuInfo>) -> Self
pub fn set_gpu_info(self, input: Option<GpuInfo>) -> Self
Describes the GPU accelerator settings for the instance type.
sourcepub fn get_gpu_info(&self) -> &Option<GpuInfo>
pub fn get_gpu_info(&self) -> &Option<GpuInfo>
Describes the GPU accelerator settings for the instance type.
sourcepub fn fpga_info(self, input: FpgaInfo) -> Self
pub fn fpga_info(self, input: FpgaInfo) -> Self
Describes the FPGA accelerator settings for the instance type.
sourcepub fn set_fpga_info(self, input: Option<FpgaInfo>) -> Self
pub fn set_fpga_info(self, input: Option<FpgaInfo>) -> Self
Describes the FPGA accelerator settings for the instance type.
sourcepub fn get_fpga_info(&self) -> &Option<FpgaInfo>
pub fn get_fpga_info(&self) -> &Option<FpgaInfo>
Describes the FPGA accelerator settings for the instance type.
sourcepub fn placement_group_info(self, input: PlacementGroupInfo) -> Self
pub fn placement_group_info(self, input: PlacementGroupInfo) -> Self
Describes the placement group settings for the instance type.
sourcepub fn set_placement_group_info(self, input: Option<PlacementGroupInfo>) -> Self
pub fn set_placement_group_info(self, input: Option<PlacementGroupInfo>) -> Self
Describes the placement group settings for the instance type.
sourcepub fn get_placement_group_info(&self) -> &Option<PlacementGroupInfo>
pub fn get_placement_group_info(&self) -> &Option<PlacementGroupInfo>
Describes the placement group settings for the instance type.
sourcepub fn inference_accelerator_info(self, input: InferenceAcceleratorInfo) -> Self
pub fn inference_accelerator_info(self, input: InferenceAcceleratorInfo) -> Self
Describes the Inference accelerator settings for the instance type.
sourcepub fn set_inference_accelerator_info(
self,
input: Option<InferenceAcceleratorInfo>
) -> Self
pub fn set_inference_accelerator_info( self, input: Option<InferenceAcceleratorInfo> ) -> Self
Describes the Inference accelerator settings for the instance type.
sourcepub fn get_inference_accelerator_info(
&self
) -> &Option<InferenceAcceleratorInfo>
pub fn get_inference_accelerator_info( &self ) -> &Option<InferenceAcceleratorInfo>
Describes the Inference accelerator settings for the instance type.
sourcepub fn hibernation_supported(self, input: bool) -> Self
pub fn hibernation_supported(self, input: bool) -> Self
Indicates whether On-Demand hibernation is supported.
sourcepub fn set_hibernation_supported(self, input: Option<bool>) -> Self
pub fn set_hibernation_supported(self, input: Option<bool>) -> Self
Indicates whether On-Demand hibernation is supported.
sourcepub fn get_hibernation_supported(&self) -> &Option<bool>
pub fn get_hibernation_supported(&self) -> &Option<bool>
Indicates whether On-Demand hibernation is supported.
sourcepub fn burstable_performance_supported(self, input: bool) -> Self
pub fn burstable_performance_supported(self, input: bool) -> Self
Indicates whether the instance type is a burstable performance T instance type. For more information, see Burstable performance instances.
sourcepub fn set_burstable_performance_supported(self, input: Option<bool>) -> Self
pub fn set_burstable_performance_supported(self, input: Option<bool>) -> Self
Indicates whether the instance type is a burstable performance T instance type. For more information, see Burstable performance instances.
sourcepub fn get_burstable_performance_supported(&self) -> &Option<bool>
pub fn get_burstable_performance_supported(&self) -> &Option<bool>
Indicates whether the instance type is a burstable performance T instance type. For more information, see Burstable performance instances.
sourcepub fn dedicated_hosts_supported(self, input: bool) -> Self
pub fn dedicated_hosts_supported(self, input: bool) -> Self
Indicates whether Dedicated Hosts are supported on the instance type.
sourcepub fn set_dedicated_hosts_supported(self, input: Option<bool>) -> Self
pub fn set_dedicated_hosts_supported(self, input: Option<bool>) -> Self
Indicates whether Dedicated Hosts are supported on the instance type.
sourcepub fn get_dedicated_hosts_supported(&self) -> &Option<bool>
pub fn get_dedicated_hosts_supported(&self) -> &Option<bool>
Indicates whether Dedicated Hosts are supported on the instance type.
sourcepub fn auto_recovery_supported(self, input: bool) -> Self
pub fn auto_recovery_supported(self, input: bool) -> Self
Indicates whether Amazon CloudWatch action based recovery is supported.
sourcepub fn set_auto_recovery_supported(self, input: Option<bool>) -> Self
pub fn set_auto_recovery_supported(self, input: Option<bool>) -> Self
Indicates whether Amazon CloudWatch action based recovery is supported.
sourcepub fn get_auto_recovery_supported(&self) -> &Option<bool>
pub fn get_auto_recovery_supported(&self) -> &Option<bool>
Indicates whether Amazon CloudWatch action based recovery is supported.
sourcepub fn supported_boot_modes(self, input: BootModeType) -> Self
pub fn supported_boot_modes(self, input: BootModeType) -> Self
Appends an item to supported_boot_modes
.
To override the contents of this collection use set_supported_boot_modes
.
The supported boot modes. For more information, see Boot modes in the Amazon EC2 User Guide.
sourcepub fn set_supported_boot_modes(self, input: Option<Vec<BootModeType>>) -> Self
pub fn set_supported_boot_modes(self, input: Option<Vec<BootModeType>>) -> Self
The supported boot modes. For more information, see Boot modes in the Amazon EC2 User Guide.
sourcepub fn get_supported_boot_modes(&self) -> &Option<Vec<BootModeType>>
pub fn get_supported_boot_modes(&self) -> &Option<Vec<BootModeType>>
The supported boot modes. For more information, see Boot modes in the Amazon EC2 User Guide.
sourcepub fn nitro_enclaves_support(self, input: NitroEnclavesSupport) -> Self
pub fn nitro_enclaves_support(self, input: NitroEnclavesSupport) -> Self
Indicates whether Nitro Enclaves is supported.
sourcepub fn set_nitro_enclaves_support(
self,
input: Option<NitroEnclavesSupport>
) -> Self
pub fn set_nitro_enclaves_support( self, input: Option<NitroEnclavesSupport> ) -> Self
Indicates whether Nitro Enclaves is supported.
sourcepub fn get_nitro_enclaves_support(&self) -> &Option<NitroEnclavesSupport>
pub fn get_nitro_enclaves_support(&self) -> &Option<NitroEnclavesSupport>
Indicates whether Nitro Enclaves is supported.
sourcepub fn nitro_tpm_support(self, input: NitroTpmSupport) -> Self
pub fn nitro_tpm_support(self, input: NitroTpmSupport) -> Self
Indicates whether NitroTPM is supported.
sourcepub fn set_nitro_tpm_support(self, input: Option<NitroTpmSupport>) -> Self
pub fn set_nitro_tpm_support(self, input: Option<NitroTpmSupport>) -> Self
Indicates whether NitroTPM is supported.
sourcepub fn get_nitro_tpm_support(&self) -> &Option<NitroTpmSupport>
pub fn get_nitro_tpm_support(&self) -> &Option<NitroTpmSupport>
Indicates whether NitroTPM is supported.
sourcepub fn nitro_tpm_info(self, input: NitroTpmInfo) -> Self
pub fn nitro_tpm_info(self, input: NitroTpmInfo) -> Self
Describes the supported NitroTPM versions for the instance type.
sourcepub fn set_nitro_tpm_info(self, input: Option<NitroTpmInfo>) -> Self
pub fn set_nitro_tpm_info(self, input: Option<NitroTpmInfo>) -> Self
Describes the supported NitroTPM versions for the instance type.
sourcepub fn get_nitro_tpm_info(&self) -> &Option<NitroTpmInfo>
pub fn get_nitro_tpm_info(&self) -> &Option<NitroTpmInfo>
Describes the supported NitroTPM versions for the instance type.
sourcepub fn build(self) -> InstanceTypeInfo
pub fn build(self) -> InstanceTypeInfo
Consumes the builder and constructs a InstanceTypeInfo
.
Trait Implementations§
source§impl Clone for InstanceTypeInfoBuilder
impl Clone for InstanceTypeInfoBuilder
source§fn clone(&self) -> InstanceTypeInfoBuilder
fn clone(&self) -> InstanceTypeInfoBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceTypeInfoBuilder
impl Debug for InstanceTypeInfoBuilder
source§impl Default for InstanceTypeInfoBuilder
impl Default for InstanceTypeInfoBuilder
source§fn default() -> InstanceTypeInfoBuilder
fn default() -> InstanceTypeInfoBuilder
source§impl PartialEq<InstanceTypeInfoBuilder> for InstanceTypeInfoBuilder
impl PartialEq<InstanceTypeInfoBuilder> for InstanceTypeInfoBuilder
source§fn eq(&self, other: &InstanceTypeInfoBuilder) -> bool
fn eq(&self, other: &InstanceTypeInfoBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.