#[non_exhaustive]pub struct AwsEc2InstanceDetailsBuilder { /* private fields */ }
Expand description
A builder for AwsEc2InstanceDetails
.
Implementations§
source§impl AwsEc2InstanceDetailsBuilder
impl AwsEc2InstanceDetailsBuilder
sourcepub fn image_id(self, input: impl Into<String>) -> Self
pub fn image_id(self, input: impl Into<String>) -> Self
The Amazon Machine Image (AMI) ID of the instance.
sourcepub fn set_image_id(self, input: Option<String>) -> Self
pub fn set_image_id(self, input: Option<String>) -> Self
The Amazon Machine Image (AMI) ID of the instance.
sourcepub fn get_image_id(&self) -> &Option<String>
pub fn get_image_id(&self) -> &Option<String>
The Amazon Machine Image (AMI) ID of the instance.
sourcepub fn ipv4_addresses(self, input: impl Into<String>) -> Self
pub fn ipv4_addresses(self, input: impl Into<String>) -> Self
Appends an item to ipv4_addresses
.
To override the contents of this collection use set_ipv4_addresses
.
The IPv4 addresses associated with the instance.
sourcepub fn set_ipv4_addresses(self, input: Option<Vec<String>>) -> Self
pub fn set_ipv4_addresses(self, input: Option<Vec<String>>) -> Self
The IPv4 addresses associated with the instance.
sourcepub fn get_ipv4_addresses(&self) -> &Option<Vec<String>>
pub fn get_ipv4_addresses(&self) -> &Option<Vec<String>>
The IPv4 addresses associated with the instance.
sourcepub fn ipv6_addresses(self, input: impl Into<String>) -> Self
pub fn ipv6_addresses(self, input: impl Into<String>) -> Self
Appends an item to ipv6_addresses
.
To override the contents of this collection use set_ipv6_addresses
.
The IPv6 addresses associated with the instance.
sourcepub fn set_ipv6_addresses(self, input: Option<Vec<String>>) -> Self
pub fn set_ipv6_addresses(self, input: Option<Vec<String>>) -> Self
The IPv6 addresses associated with the instance.
sourcepub fn get_ipv6_addresses(&self) -> &Option<Vec<String>>
pub fn get_ipv6_addresses(&self) -> &Option<Vec<String>>
The IPv6 addresses associated with the instance.
sourcepub fn key_name(self, input: impl Into<String>) -> Self
pub fn key_name(self, input: impl Into<String>) -> Self
The key name associated with the instance.
sourcepub fn set_key_name(self, input: Option<String>) -> Self
pub fn set_key_name(self, input: Option<String>) -> Self
The key name associated with the instance.
sourcepub fn get_key_name(&self) -> &Option<String>
pub fn get_key_name(&self) -> &Option<String>
The key name associated with the instance.
sourcepub fn iam_instance_profile_arn(self, input: impl Into<String>) -> Self
pub fn iam_instance_profile_arn(self, input: impl Into<String>) -> Self
The IAM profile ARN of the instance.
sourcepub fn set_iam_instance_profile_arn(self, input: Option<String>) -> Self
pub fn set_iam_instance_profile_arn(self, input: Option<String>) -> Self
The IAM profile ARN of the instance.
sourcepub fn get_iam_instance_profile_arn(&self) -> &Option<String>
pub fn get_iam_instance_profile_arn(&self) -> &Option<String>
The IAM profile ARN of the instance.
sourcepub fn vpc_id(self, input: impl Into<String>) -> Self
pub fn vpc_id(self, input: impl Into<String>) -> Self
The identifier of the VPC that the instance was launched in.
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The identifier of the VPC that the instance was launched in.
sourcepub fn get_vpc_id(&self) -> &Option<String>
pub fn get_vpc_id(&self) -> &Option<String>
The identifier of the VPC that the instance was launched in.
sourcepub fn subnet_id(self, input: impl Into<String>) -> Self
pub fn subnet_id(self, input: impl Into<String>) -> Self
The identifier of the subnet that the instance was launched in.
sourcepub fn set_subnet_id(self, input: Option<String>) -> Self
pub fn set_subnet_id(self, input: Option<String>) -> Self
The identifier of the subnet that the instance was launched in.
sourcepub fn get_subnet_id(&self) -> &Option<String>
pub fn get_subnet_id(&self) -> &Option<String>
The identifier of the subnet that the instance was launched in.
sourcepub fn launched_at(self, input: impl Into<String>) -> Self
pub fn launched_at(self, input: impl Into<String>) -> Self
Indicates when the instance was launched.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn set_launched_at(self, input: Option<String>) -> Self
pub fn set_launched_at(self, input: Option<String>) -> Self
Indicates when the instance was launched.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn get_launched_at(&self) -> &Option<String>
pub fn get_launched_at(&self) -> &Option<String>
Indicates when the instance was launched.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn network_interfaces(
self,
input: AwsEc2InstanceNetworkInterfacesDetails
) -> Self
pub fn network_interfaces( self, input: AwsEc2InstanceNetworkInterfacesDetails ) -> Self
Appends an item to network_interfaces
.
To override the contents of this collection use set_network_interfaces
.
The identifiers of the network interfaces for the EC2 instance. The details for each network interface are in a corresponding AwsEc2NetworkInterfacesDetails
object.
sourcepub fn set_network_interfaces(
self,
input: Option<Vec<AwsEc2InstanceNetworkInterfacesDetails>>
) -> Self
pub fn set_network_interfaces( self, input: Option<Vec<AwsEc2InstanceNetworkInterfacesDetails>> ) -> Self
The identifiers of the network interfaces for the EC2 instance. The details for each network interface are in a corresponding AwsEc2NetworkInterfacesDetails
object.
sourcepub fn get_network_interfaces(
&self
) -> &Option<Vec<AwsEc2InstanceNetworkInterfacesDetails>>
pub fn get_network_interfaces( &self ) -> &Option<Vec<AwsEc2InstanceNetworkInterfacesDetails>>
The identifiers of the network interfaces for the EC2 instance. The details for each network interface are in a corresponding AwsEc2NetworkInterfacesDetails
object.
sourcepub fn virtualization_type(self, input: impl Into<String>) -> Self
pub fn virtualization_type(self, input: impl Into<String>) -> Self
The virtualization type of the Amazon Machine Image (AMI) required to launch the instance.
sourcepub fn set_virtualization_type(self, input: Option<String>) -> Self
pub fn set_virtualization_type(self, input: Option<String>) -> Self
The virtualization type of the Amazon Machine Image (AMI) required to launch the instance.
sourcepub fn get_virtualization_type(&self) -> &Option<String>
pub fn get_virtualization_type(&self) -> &Option<String>
The virtualization type of the Amazon Machine Image (AMI) required to launch the instance.
sourcepub fn metadata_options(self, input: AwsEc2InstanceMetadataOptions) -> Self
pub fn metadata_options(self, input: AwsEc2InstanceMetadataOptions) -> Self
Details about the metadata options for the Amazon EC2 instance.
sourcepub fn set_metadata_options(
self,
input: Option<AwsEc2InstanceMetadataOptions>
) -> Self
pub fn set_metadata_options( self, input: Option<AwsEc2InstanceMetadataOptions> ) -> Self
Details about the metadata options for the Amazon EC2 instance.
sourcepub fn get_metadata_options(&self) -> &Option<AwsEc2InstanceMetadataOptions>
pub fn get_metadata_options(&self) -> &Option<AwsEc2InstanceMetadataOptions>
Details about the metadata options for the Amazon EC2 instance.
sourcepub fn monitoring(self, input: AwsEc2InstanceMonitoringDetails) -> Self
pub fn monitoring(self, input: AwsEc2InstanceMonitoringDetails) -> Self
Describes the type of monitoring that’s turned on for an instance.
sourcepub fn set_monitoring(
self,
input: Option<AwsEc2InstanceMonitoringDetails>
) -> Self
pub fn set_monitoring( self, input: Option<AwsEc2InstanceMonitoringDetails> ) -> Self
Describes the type of monitoring that’s turned on for an instance.
sourcepub fn get_monitoring(&self) -> &Option<AwsEc2InstanceMonitoringDetails>
pub fn get_monitoring(&self) -> &Option<AwsEc2InstanceMonitoringDetails>
Describes the type of monitoring that’s turned on for an instance.
sourcepub fn build(self) -> AwsEc2InstanceDetails
pub fn build(self) -> AwsEc2InstanceDetails
Consumes the builder and constructs a AwsEc2InstanceDetails
.
Trait Implementations§
source§impl Clone for AwsEc2InstanceDetailsBuilder
impl Clone for AwsEc2InstanceDetailsBuilder
source§fn clone(&self) -> AwsEc2InstanceDetailsBuilder
fn clone(&self) -> AwsEc2InstanceDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AwsEc2InstanceDetailsBuilder
impl Debug for AwsEc2InstanceDetailsBuilder
source§impl Default for AwsEc2InstanceDetailsBuilder
impl Default for AwsEc2InstanceDetailsBuilder
source§fn default() -> AwsEc2InstanceDetailsBuilder
fn default() -> AwsEc2InstanceDetailsBuilder
source§impl PartialEq for AwsEc2InstanceDetailsBuilder
impl PartialEq for AwsEc2InstanceDetailsBuilder
source§fn eq(&self, other: &AwsEc2InstanceDetailsBuilder) -> bool
fn eq(&self, other: &AwsEc2InstanceDetailsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.