Struct aws_sdk_securityhub::model::aws_ec2_instance_details::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for AwsEc2InstanceDetails
.
Implementations
sourceimpl Builder
impl Builder
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 ip_v4_addresses(self, input: impl Into<String>) -> Self
pub fn ip_v4_addresses(self, input: impl Into<String>) -> Self
Appends an item to ip_v4_addresses
.
To override the contents of this collection use set_ip_v4_addresses
.
The IPv4 addresses associated with the instance.
sourcepub fn set_ip_v4_addresses(self, input: Option<Vec<String>>) -> Self
pub fn set_ip_v4_addresses(self, input: Option<Vec<String>>) -> Self
The IPv4 addresses associated with the instance.
sourcepub fn ip_v6_addresses(self, input: impl Into<String>) -> Self
pub fn ip_v6_addresses(self, input: impl Into<String>) -> Self
Appends an item to ip_v6_addresses
.
To override the contents of this collection use set_ip_v6_addresses
.
The IPv6 addresses associated with the instance.
sourcepub fn set_ip_v6_addresses(self, input: Option<Vec<String>>) -> Self
pub fn set_ip_v6_addresses(self, input: Option<Vec<String>>) -> Self
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 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 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 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 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. 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. 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 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 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 build(self) -> AwsEc2InstanceDetails
pub fn build(self) -> AwsEc2InstanceDetails
Consumes the builder and constructs a AwsEc2InstanceDetails
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more