#[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.
This field accepts only the specified formats. Timestamps can end with Z or ("+" / "-") time-hour \[":" time-minute\]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
-
YYYY-MM-DDTHH:MM:SSZ(for example,2019-01-31T23:00:00Z) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ(for example,2019-01-31T23:00:00.123456789Z) -
YYYY-MM-DDTHH:MM:SS+HH:MM(for example,2024-01-04T15:25:10+17:59) -
YYYY-MM-DDTHH:MM:SS-HHMM(for example,2024-01-04T15:25:10-1759) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM(for example,2024-01-04T15:25:10.123456789+17:59)
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.
This field accepts only the specified formats. Timestamps can end with Z or ("+" / "-") time-hour \[":" time-minute\]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
-
YYYY-MM-DDTHH:MM:SSZ(for example,2019-01-31T23:00:00Z) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ(for example,2019-01-31T23:00:00.123456789Z) -
YYYY-MM-DDTHH:MM:SS+HH:MM(for example,2024-01-04T15:25:10+17:59) -
YYYY-MM-DDTHH:MM:SS-HHMM(for example,2024-01-04T15:25:10-1759) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM(for example,2024-01-04T15:25:10.123456789+17:59)
sourcepub fn get_launched_at(&self) -> &Option<String>
pub fn get_launched_at(&self) -> &Option<String>
Indicates when the instance was launched.
This field accepts only the specified formats. Timestamps can end with Z or ("+" / "-") time-hour \[":" time-minute\]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
-
YYYY-MM-DDTHH:MM:SSZ(for example,2019-01-31T23:00:00Z) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ(for example,2019-01-31T23:00:00.123456789Z) -
YYYY-MM-DDTHH:MM:SS+HH:MM(for example,2024-01-04T15:25:10+17:59) -
YYYY-MM-DDTHH:MM:SS-HHMM(for example,2024-01-04T15:25:10-1759) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM(for example,2024-01-04T15:25:10.123456789+17:59)
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 ==.impl StructuralPartialEq for AwsEc2InstanceDetailsBuilder
Auto Trait Implementations§
impl Freeze for AwsEc2InstanceDetailsBuilder
impl RefUnwindSafe for AwsEc2InstanceDetailsBuilder
impl Send for AwsEc2InstanceDetailsBuilder
impl Sync for AwsEc2InstanceDetailsBuilder
impl Unpin for AwsEc2InstanceDetailsBuilder
impl UnwindSafe for AwsEc2InstanceDetailsBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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