#[non_exhaustive]pub struct ResponseLaunchTemplateDataBuilder { /* private fields */ }
Expand description
A builder for ResponseLaunchTemplateData
.
Implementations§
Source§impl ResponseLaunchTemplateDataBuilder
impl ResponseLaunchTemplateDataBuilder
Sourcepub fn set_kernel_id(self, input: Option<String>) -> Self
pub fn set_kernel_id(self, input: Option<String>) -> Self
The ID of the kernel, if applicable.
Sourcepub fn get_kernel_id(&self) -> &Option<String>
pub fn get_kernel_id(&self) -> &Option<String>
The ID of the kernel, if applicable.
Sourcepub fn ebs_optimized(self, input: bool) -> Self
pub fn ebs_optimized(self, input: bool) -> Self
Indicates whether the instance is optimized for Amazon EBS I/O.
Sourcepub fn set_ebs_optimized(self, input: Option<bool>) -> Self
pub fn set_ebs_optimized(self, input: Option<bool>) -> Self
Indicates whether the instance is optimized for Amazon EBS I/O.
Sourcepub fn get_ebs_optimized(&self) -> &Option<bool>
pub fn get_ebs_optimized(&self) -> &Option<bool>
Indicates whether the instance is optimized for Amazon EBS I/O.
Sourcepub fn iam_instance_profile(
self,
input: LaunchTemplateIamInstanceProfileSpecification,
) -> Self
pub fn iam_instance_profile( self, input: LaunchTemplateIamInstanceProfileSpecification, ) -> Self
The IAM instance profile.
Sourcepub fn set_iam_instance_profile(
self,
input: Option<LaunchTemplateIamInstanceProfileSpecification>,
) -> Self
pub fn set_iam_instance_profile( self, input: Option<LaunchTemplateIamInstanceProfileSpecification>, ) -> Self
The IAM instance profile.
Sourcepub fn get_iam_instance_profile(
&self,
) -> &Option<LaunchTemplateIamInstanceProfileSpecification>
pub fn get_iam_instance_profile( &self, ) -> &Option<LaunchTemplateIamInstanceProfileSpecification>
The IAM instance profile.
Sourcepub fn block_device_mappings(
self,
input: LaunchTemplateBlockDeviceMapping,
) -> Self
pub fn block_device_mappings( self, input: LaunchTemplateBlockDeviceMapping, ) -> Self
Appends an item to block_device_mappings
.
To override the contents of this collection use set_block_device_mappings
.
The block device mappings.
Sourcepub fn set_block_device_mappings(
self,
input: Option<Vec<LaunchTemplateBlockDeviceMapping>>,
) -> Self
pub fn set_block_device_mappings( self, input: Option<Vec<LaunchTemplateBlockDeviceMapping>>, ) -> Self
The block device mappings.
Sourcepub fn get_block_device_mappings(
&self,
) -> &Option<Vec<LaunchTemplateBlockDeviceMapping>>
pub fn get_block_device_mappings( &self, ) -> &Option<Vec<LaunchTemplateBlockDeviceMapping>>
The block device mappings.
Sourcepub fn network_interfaces(
self,
input: LaunchTemplateInstanceNetworkInterfaceSpecification,
) -> Self
pub fn network_interfaces( self, input: LaunchTemplateInstanceNetworkInterfaceSpecification, ) -> Self
Appends an item to network_interfaces
.
To override the contents of this collection use set_network_interfaces
.
The network interfaces.
Sourcepub fn set_network_interfaces(
self,
input: Option<Vec<LaunchTemplateInstanceNetworkInterfaceSpecification>>,
) -> Self
pub fn set_network_interfaces( self, input: Option<Vec<LaunchTemplateInstanceNetworkInterfaceSpecification>>, ) -> Self
The network interfaces.
Sourcepub fn get_network_interfaces(
&self,
) -> &Option<Vec<LaunchTemplateInstanceNetworkInterfaceSpecification>>
pub fn get_network_interfaces( &self, ) -> &Option<Vec<LaunchTemplateInstanceNetworkInterfaceSpecification>>
The network interfaces.
Sourcepub fn image_id(self, input: impl Into<String>) -> Self
pub fn image_id(self, input: impl Into<String>) -> Self
The ID of the AMI or a Systems Manager parameter. The Systems Manager parameter will resolve to the ID of the AMI at instance launch.
The value depends on what you specified in the request. The possible values are:
-
If an AMI ID was specified in the request, then this is the AMI ID.
-
If a Systems Manager parameter was specified in the request, and
ResolveAlias
was configured astrue
, then this is the AMI ID that the parameter is mapped to in the Parameter Store. -
If a Systems Manager parameter was specified in the request, and
ResolveAlias
was configured asfalse
, then this is the parameter value.
For more information, see Use a Systems Manager parameter instead of an AMI ID in the Amazon EC2 User Guide.
Sourcepub fn set_image_id(self, input: Option<String>) -> Self
pub fn set_image_id(self, input: Option<String>) -> Self
The ID of the AMI or a Systems Manager parameter. The Systems Manager parameter will resolve to the ID of the AMI at instance launch.
The value depends on what you specified in the request. The possible values are:
-
If an AMI ID was specified in the request, then this is the AMI ID.
-
If a Systems Manager parameter was specified in the request, and
ResolveAlias
was configured astrue
, then this is the AMI ID that the parameter is mapped to in the Parameter Store. -
If a Systems Manager parameter was specified in the request, and
ResolveAlias
was configured asfalse
, then this is the parameter value.
For more information, see Use a Systems Manager parameter instead of an AMI ID in the Amazon EC2 User Guide.
Sourcepub fn get_image_id(&self) -> &Option<String>
pub fn get_image_id(&self) -> &Option<String>
The ID of the AMI or a Systems Manager parameter. The Systems Manager parameter will resolve to the ID of the AMI at instance launch.
The value depends on what you specified in the request. The possible values are:
-
If an AMI ID was specified in the request, then this is the AMI ID.
-
If a Systems Manager parameter was specified in the request, and
ResolveAlias
was configured astrue
, then this is the AMI ID that the parameter is mapped to in the Parameter Store. -
If a Systems Manager parameter was specified in the request, and
ResolveAlias
was configured asfalse
, then this is the parameter value.
For more information, see Use a Systems Manager parameter instead of an AMI ID in the Amazon EC2 User Guide.
Sourcepub fn instance_type(self, input: InstanceType) -> Self
pub fn instance_type(self, input: InstanceType) -> Self
The instance type.
Sourcepub fn set_instance_type(self, input: Option<InstanceType>) -> Self
pub fn set_instance_type(self, input: Option<InstanceType>) -> Self
The instance type.
Sourcepub fn get_instance_type(&self) -> &Option<InstanceType>
pub fn get_instance_type(&self) -> &Option<InstanceType>
The instance type.
Sourcepub fn set_key_name(self, input: Option<String>) -> Self
pub fn set_key_name(self, input: Option<String>) -> Self
The name of the key pair.
Sourcepub fn get_key_name(&self) -> &Option<String>
pub fn get_key_name(&self) -> &Option<String>
The name of the key pair.
Sourcepub fn monitoring(self, input: LaunchTemplatesMonitoring) -> Self
pub fn monitoring(self, input: LaunchTemplatesMonitoring) -> Self
The monitoring for the instance.
Sourcepub fn set_monitoring(self, input: Option<LaunchTemplatesMonitoring>) -> Self
pub fn set_monitoring(self, input: Option<LaunchTemplatesMonitoring>) -> Self
The monitoring for the instance.
Sourcepub fn get_monitoring(&self) -> &Option<LaunchTemplatesMonitoring>
pub fn get_monitoring(&self) -> &Option<LaunchTemplatesMonitoring>
The monitoring for the instance.
Sourcepub fn placement(self, input: LaunchTemplatePlacement) -> Self
pub fn placement(self, input: LaunchTemplatePlacement) -> Self
The placement of the instance.
Sourcepub fn set_placement(self, input: Option<LaunchTemplatePlacement>) -> Self
pub fn set_placement(self, input: Option<LaunchTemplatePlacement>) -> Self
The placement of the instance.
Sourcepub fn get_placement(&self) -> &Option<LaunchTemplatePlacement>
pub fn get_placement(&self) -> &Option<LaunchTemplatePlacement>
The placement of the instance.
Sourcepub fn ram_disk_id(self, input: impl Into<String>) -> Self
pub fn ram_disk_id(self, input: impl Into<String>) -> Self
The ID of the RAM disk, if applicable.
Sourcepub fn set_ram_disk_id(self, input: Option<String>) -> Self
pub fn set_ram_disk_id(self, input: Option<String>) -> Self
The ID of the RAM disk, if applicable.
Sourcepub fn get_ram_disk_id(&self) -> &Option<String>
pub fn get_ram_disk_id(&self) -> &Option<String>
The ID of the RAM disk, if applicable.
Sourcepub fn disable_api_termination(self, input: bool) -> Self
pub fn disable_api_termination(self, input: bool) -> Self
If set to true
, indicates that the instance cannot be terminated using the Amazon EC2 console, command line tool, or API.
Sourcepub fn set_disable_api_termination(self, input: Option<bool>) -> Self
pub fn set_disable_api_termination(self, input: Option<bool>) -> Self
If set to true
, indicates that the instance cannot be terminated using the Amazon EC2 console, command line tool, or API.
Sourcepub fn get_disable_api_termination(&self) -> &Option<bool>
pub fn get_disable_api_termination(&self) -> &Option<bool>
If set to true
, indicates that the instance cannot be terminated using the Amazon EC2 console, command line tool, or API.
Sourcepub fn instance_initiated_shutdown_behavior(
self,
input: ShutdownBehavior,
) -> Self
pub fn instance_initiated_shutdown_behavior( self, input: ShutdownBehavior, ) -> Self
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Sourcepub fn set_instance_initiated_shutdown_behavior(
self,
input: Option<ShutdownBehavior>,
) -> Self
pub fn set_instance_initiated_shutdown_behavior( self, input: Option<ShutdownBehavior>, ) -> Self
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Sourcepub fn get_instance_initiated_shutdown_behavior(
&self,
) -> &Option<ShutdownBehavior>
pub fn get_instance_initiated_shutdown_behavior( &self, ) -> &Option<ShutdownBehavior>
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Sourcepub fn set_user_data(self, input: Option<String>) -> Self
pub fn set_user_data(self, input: Option<String>) -> Self
The user data for the instance.
Sourcepub fn get_user_data(&self) -> &Option<String>
pub fn get_user_data(&self) -> &Option<String>
The user data for the instance.
Sourcepub fn tag_specifications(self, input: LaunchTemplateTagSpecification) -> Self
pub fn tag_specifications(self, input: LaunchTemplateTagSpecification) -> Self
Appends an item to tag_specifications
.
To override the contents of this collection use set_tag_specifications
.
The tags that are applied to the resources that are created during instance launch.
Sourcepub fn set_tag_specifications(
self,
input: Option<Vec<LaunchTemplateTagSpecification>>,
) -> Self
pub fn set_tag_specifications( self, input: Option<Vec<LaunchTemplateTagSpecification>>, ) -> Self
The tags that are applied to the resources that are created during instance launch.
Sourcepub fn get_tag_specifications(
&self,
) -> &Option<Vec<LaunchTemplateTagSpecification>>
pub fn get_tag_specifications( &self, ) -> &Option<Vec<LaunchTemplateTagSpecification>>
The tags that are applied to the resources that are created during instance launch.
Sourcepub fn elastic_gpu_specifications(
self,
input: ElasticGpuSpecificationResponse,
) -> Self
pub fn elastic_gpu_specifications( self, input: ElasticGpuSpecificationResponse, ) -> Self
Appends an item to elastic_gpu_specifications
.
To override the contents of this collection use set_elastic_gpu_specifications
.
Deprecated.
Amazon Elastic Graphics reached end of life on January 8, 2024.
Sourcepub fn set_elastic_gpu_specifications(
self,
input: Option<Vec<ElasticGpuSpecificationResponse>>,
) -> Self
pub fn set_elastic_gpu_specifications( self, input: Option<Vec<ElasticGpuSpecificationResponse>>, ) -> Self
Deprecated.
Amazon Elastic Graphics reached end of life on January 8, 2024.
Sourcepub fn get_elastic_gpu_specifications(
&self,
) -> &Option<Vec<ElasticGpuSpecificationResponse>>
pub fn get_elastic_gpu_specifications( &self, ) -> &Option<Vec<ElasticGpuSpecificationResponse>>
Deprecated.
Amazon Elastic Graphics reached end of life on January 8, 2024.
Sourcepub fn elastic_inference_accelerators(
self,
input: LaunchTemplateElasticInferenceAcceleratorResponse,
) -> Self
pub fn elastic_inference_accelerators( self, input: LaunchTemplateElasticInferenceAcceleratorResponse, ) -> Self
Appends an item to elastic_inference_accelerators
.
To override the contents of this collection use set_elastic_inference_accelerators
.
Amazon Elastic Inference is no longer available.
An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads.
You cannot specify accelerators from different generations in the same request.
Sourcepub fn set_elastic_inference_accelerators(
self,
input: Option<Vec<LaunchTemplateElasticInferenceAcceleratorResponse>>,
) -> Self
pub fn set_elastic_inference_accelerators( self, input: Option<Vec<LaunchTemplateElasticInferenceAcceleratorResponse>>, ) -> Self
Amazon Elastic Inference is no longer available.
An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads.
You cannot specify accelerators from different generations in the same request.
Sourcepub fn get_elastic_inference_accelerators(
&self,
) -> &Option<Vec<LaunchTemplateElasticInferenceAcceleratorResponse>>
pub fn get_elastic_inference_accelerators( &self, ) -> &Option<Vec<LaunchTemplateElasticInferenceAcceleratorResponse>>
Amazon Elastic Inference is no longer available.
An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads.
You cannot specify accelerators from different generations in the same request.
Sourcepub fn security_group_ids(self, input: impl Into<String>) -> Self
pub fn security_group_ids(self, input: impl Into<String>) -> Self
Appends an item to security_group_ids
.
To override the contents of this collection use set_security_group_ids
.
The security group IDs.
Sourcepub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
The security group IDs.
Sourcepub fn get_security_group_ids(&self) -> &Option<Vec<String>>
pub fn get_security_group_ids(&self) -> &Option<Vec<String>>
The security group IDs.
Sourcepub fn security_groups(self, input: impl Into<String>) -> Self
pub fn security_groups(self, input: impl Into<String>) -> Self
Appends an item to security_groups
.
To override the contents of this collection use set_security_groups
.
The security group names.
Sourcepub fn set_security_groups(self, input: Option<Vec<String>>) -> Self
pub fn set_security_groups(self, input: Option<Vec<String>>) -> Self
The security group names.
Sourcepub fn get_security_groups(&self) -> &Option<Vec<String>>
pub fn get_security_groups(&self) -> &Option<Vec<String>>
The security group names.
Sourcepub fn instance_market_options(
self,
input: LaunchTemplateInstanceMarketOptions,
) -> Self
pub fn instance_market_options( self, input: LaunchTemplateInstanceMarketOptions, ) -> Self
The market (purchasing) option for the instances.
Sourcepub fn set_instance_market_options(
self,
input: Option<LaunchTemplateInstanceMarketOptions>,
) -> Self
pub fn set_instance_market_options( self, input: Option<LaunchTemplateInstanceMarketOptions>, ) -> Self
The market (purchasing) option for the instances.
Sourcepub fn get_instance_market_options(
&self,
) -> &Option<LaunchTemplateInstanceMarketOptions>
pub fn get_instance_market_options( &self, ) -> &Option<LaunchTemplateInstanceMarketOptions>
The market (purchasing) option for the instances.
Sourcepub fn credit_specification(self, input: CreditSpecification) -> Self
pub fn credit_specification(self, input: CreditSpecification) -> Self
The credit option for CPU usage of the instance.
Sourcepub fn set_credit_specification(
self,
input: Option<CreditSpecification>,
) -> Self
pub fn set_credit_specification( self, input: Option<CreditSpecification>, ) -> Self
The credit option for CPU usage of the instance.
Sourcepub fn get_credit_specification(&self) -> &Option<CreditSpecification>
pub fn get_credit_specification(&self) -> &Option<CreditSpecification>
The credit option for CPU usage of the instance.
Sourcepub fn cpu_options(self, input: LaunchTemplateCpuOptions) -> Self
pub fn cpu_options(self, input: LaunchTemplateCpuOptions) -> Self
The CPU options for the instance. For more information, see CPU options for Amazon EC2 instances in the Amazon EC2 User Guide.
Sourcepub fn set_cpu_options(self, input: Option<LaunchTemplateCpuOptions>) -> Self
pub fn set_cpu_options(self, input: Option<LaunchTemplateCpuOptions>) -> Self
The CPU options for the instance. For more information, see CPU options for Amazon EC2 instances in the Amazon EC2 User Guide.
Sourcepub fn get_cpu_options(&self) -> &Option<LaunchTemplateCpuOptions>
pub fn get_cpu_options(&self) -> &Option<LaunchTemplateCpuOptions>
The CPU options for the instance. For more information, see CPU options for Amazon EC2 instances in the Amazon EC2 User Guide.
Sourcepub fn capacity_reservation_specification(
self,
input: LaunchTemplateCapacityReservationSpecificationResponse,
) -> Self
pub fn capacity_reservation_specification( self, input: LaunchTemplateCapacityReservationSpecificationResponse, ) -> Self
Information about the Capacity Reservation targeting option.
Sourcepub fn set_capacity_reservation_specification(
self,
input: Option<LaunchTemplateCapacityReservationSpecificationResponse>,
) -> Self
pub fn set_capacity_reservation_specification( self, input: Option<LaunchTemplateCapacityReservationSpecificationResponse>, ) -> Self
Information about the Capacity Reservation targeting option.
Sourcepub fn get_capacity_reservation_specification(
&self,
) -> &Option<LaunchTemplateCapacityReservationSpecificationResponse>
pub fn get_capacity_reservation_specification( &self, ) -> &Option<LaunchTemplateCapacityReservationSpecificationResponse>
Information about the Capacity Reservation targeting option.
Sourcepub fn license_specifications(
self,
input: LaunchTemplateLicenseConfiguration,
) -> Self
pub fn license_specifications( self, input: LaunchTemplateLicenseConfiguration, ) -> Self
Appends an item to license_specifications
.
To override the contents of this collection use set_license_specifications
.
The license configurations.
Sourcepub fn set_license_specifications(
self,
input: Option<Vec<LaunchTemplateLicenseConfiguration>>,
) -> Self
pub fn set_license_specifications( self, input: Option<Vec<LaunchTemplateLicenseConfiguration>>, ) -> Self
The license configurations.
Sourcepub fn get_license_specifications(
&self,
) -> &Option<Vec<LaunchTemplateLicenseConfiguration>>
pub fn get_license_specifications( &self, ) -> &Option<Vec<LaunchTemplateLicenseConfiguration>>
The license configurations.
Sourcepub fn hibernation_options(
self,
input: LaunchTemplateHibernationOptions,
) -> Self
pub fn hibernation_options( self, input: LaunchTemplateHibernationOptions, ) -> Self
Indicates whether an instance is configured for hibernation. For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide.
Sourcepub fn set_hibernation_options(
self,
input: Option<LaunchTemplateHibernationOptions>,
) -> Self
pub fn set_hibernation_options( self, input: Option<LaunchTemplateHibernationOptions>, ) -> Self
Indicates whether an instance is configured for hibernation. For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide.
Sourcepub fn get_hibernation_options(
&self,
) -> &Option<LaunchTemplateHibernationOptions>
pub fn get_hibernation_options( &self, ) -> &Option<LaunchTemplateHibernationOptions>
Indicates whether an instance is configured for hibernation. For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide.
Sourcepub fn metadata_options(
self,
input: LaunchTemplateInstanceMetadataOptions,
) -> Self
pub fn metadata_options( self, input: LaunchTemplateInstanceMetadataOptions, ) -> Self
The metadata options for the instance. For more information, see Configure the Instance Metadata Service options in the Amazon EC2 User Guide.
Sourcepub fn set_metadata_options(
self,
input: Option<LaunchTemplateInstanceMetadataOptions>,
) -> Self
pub fn set_metadata_options( self, input: Option<LaunchTemplateInstanceMetadataOptions>, ) -> Self
The metadata options for the instance. For more information, see Configure the Instance Metadata Service options in the Amazon EC2 User Guide.
Sourcepub fn get_metadata_options(
&self,
) -> &Option<LaunchTemplateInstanceMetadataOptions>
pub fn get_metadata_options( &self, ) -> &Option<LaunchTemplateInstanceMetadataOptions>
The metadata options for the instance. For more information, see Configure the Instance Metadata Service options in the Amazon EC2 User Guide.
Sourcepub fn enclave_options(self, input: LaunchTemplateEnclaveOptions) -> Self
pub fn enclave_options(self, input: LaunchTemplateEnclaveOptions) -> Self
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
Sourcepub fn set_enclave_options(
self,
input: Option<LaunchTemplateEnclaveOptions>,
) -> Self
pub fn set_enclave_options( self, input: Option<LaunchTemplateEnclaveOptions>, ) -> Self
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
Sourcepub fn get_enclave_options(&self) -> &Option<LaunchTemplateEnclaveOptions>
pub fn get_enclave_options(&self) -> &Option<LaunchTemplateEnclaveOptions>
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
Sourcepub fn instance_requirements(self, input: InstanceRequirements) -> Self
pub fn instance_requirements(self, input: InstanceRequirements) -> Self
The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes.
If you specify InstanceRequirements
, you can't specify InstanceTypes
.
Sourcepub fn set_instance_requirements(
self,
input: Option<InstanceRequirements>,
) -> Self
pub fn set_instance_requirements( self, input: Option<InstanceRequirements>, ) -> Self
The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes.
If you specify InstanceRequirements
, you can't specify InstanceTypes
.
Sourcepub fn get_instance_requirements(&self) -> &Option<InstanceRequirements>
pub fn get_instance_requirements(&self) -> &Option<InstanceRequirements>
The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes.
If you specify InstanceRequirements
, you can't specify InstanceTypes
.
Sourcepub fn private_dns_name_options(
self,
input: LaunchTemplatePrivateDnsNameOptions,
) -> Self
pub fn private_dns_name_options( self, input: LaunchTemplatePrivateDnsNameOptions, ) -> Self
The options for the instance hostname.
Sourcepub fn set_private_dns_name_options(
self,
input: Option<LaunchTemplatePrivateDnsNameOptions>,
) -> Self
pub fn set_private_dns_name_options( self, input: Option<LaunchTemplatePrivateDnsNameOptions>, ) -> Self
The options for the instance hostname.
Sourcepub fn get_private_dns_name_options(
&self,
) -> &Option<LaunchTemplatePrivateDnsNameOptions>
pub fn get_private_dns_name_options( &self, ) -> &Option<LaunchTemplatePrivateDnsNameOptions>
The options for the instance hostname.
Sourcepub fn maintenance_options(
self,
input: LaunchTemplateInstanceMaintenanceOptions,
) -> Self
pub fn maintenance_options( self, input: LaunchTemplateInstanceMaintenanceOptions, ) -> Self
The maintenance options for your instance.
Sourcepub fn set_maintenance_options(
self,
input: Option<LaunchTemplateInstanceMaintenanceOptions>,
) -> Self
pub fn set_maintenance_options( self, input: Option<LaunchTemplateInstanceMaintenanceOptions>, ) -> Self
The maintenance options for your instance.
Sourcepub fn get_maintenance_options(
&self,
) -> &Option<LaunchTemplateInstanceMaintenanceOptions>
pub fn get_maintenance_options( &self, ) -> &Option<LaunchTemplateInstanceMaintenanceOptions>
The maintenance options for your instance.
Sourcepub fn disable_api_stop(self, input: bool) -> Self
pub fn disable_api_stop(self, input: bool) -> Self
Indicates whether the instance is enabled for stop protection. For more information, see Enable stop protection for your EC2 instances in the Amazon EC2 User Guide.
Sourcepub fn set_disable_api_stop(self, input: Option<bool>) -> Self
pub fn set_disable_api_stop(self, input: Option<bool>) -> Self
Indicates whether the instance is enabled for stop protection. For more information, see Enable stop protection for your EC2 instances in the Amazon EC2 User Guide.
Sourcepub fn get_disable_api_stop(&self) -> &Option<bool>
pub fn get_disable_api_stop(&self) -> &Option<bool>
Indicates whether the instance is enabled for stop protection. For more information, see Enable stop protection for your EC2 instances in the Amazon EC2 User Guide.
Sourcepub fn operator(self, input: OperatorResponse) -> Self
pub fn operator(self, input: OperatorResponse) -> Self
The entity that manages the launch template.
Sourcepub fn set_operator(self, input: Option<OperatorResponse>) -> Self
pub fn set_operator(self, input: Option<OperatorResponse>) -> Self
The entity that manages the launch template.
Sourcepub fn get_operator(&self) -> &Option<OperatorResponse>
pub fn get_operator(&self) -> &Option<OperatorResponse>
The entity that manages the launch template.
Sourcepub fn network_performance_options(
self,
input: LaunchTemplateNetworkPerformanceOptions,
) -> Self
pub fn network_performance_options( self, input: LaunchTemplateNetworkPerformanceOptions, ) -> Self
Contains the launch template settings for network performance options for your instance.
Sourcepub fn set_network_performance_options(
self,
input: Option<LaunchTemplateNetworkPerformanceOptions>,
) -> Self
pub fn set_network_performance_options( self, input: Option<LaunchTemplateNetworkPerformanceOptions>, ) -> Self
Contains the launch template settings for network performance options for your instance.
Sourcepub fn get_network_performance_options(
&self,
) -> &Option<LaunchTemplateNetworkPerformanceOptions>
pub fn get_network_performance_options( &self, ) -> &Option<LaunchTemplateNetworkPerformanceOptions>
Contains the launch template settings for network performance options for your instance.
Sourcepub fn build(self) -> ResponseLaunchTemplateData
pub fn build(self) -> ResponseLaunchTemplateData
Consumes the builder and constructs a ResponseLaunchTemplateData
.
Trait Implementations§
Source§impl Clone for ResponseLaunchTemplateDataBuilder
impl Clone for ResponseLaunchTemplateDataBuilder
Source§fn clone(&self) -> ResponseLaunchTemplateDataBuilder
fn clone(&self) -> ResponseLaunchTemplateDataBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for ResponseLaunchTemplateDataBuilder
impl Default for ResponseLaunchTemplateDataBuilder
Source§fn default() -> ResponseLaunchTemplateDataBuilder
fn default() -> ResponseLaunchTemplateDataBuilder
Source§impl PartialEq for ResponseLaunchTemplateDataBuilder
impl PartialEq for ResponseLaunchTemplateDataBuilder
Source§fn eq(&self, other: &ResponseLaunchTemplateDataBuilder) -> bool
fn eq(&self, other: &ResponseLaunchTemplateDataBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ResponseLaunchTemplateDataBuilder
Auto Trait Implementations§
impl Freeze for ResponseLaunchTemplateDataBuilder
impl RefUnwindSafe for ResponseLaunchTemplateDataBuilder
impl Send for ResponseLaunchTemplateDataBuilder
impl Sync for ResponseLaunchTemplateDataBuilder
impl Unpin for ResponseLaunchTemplateDataBuilder
impl UnwindSafe for ResponseLaunchTemplateDataBuilder
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§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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);