pub struct Builder { /* private fields */ }
Expand description
A builder for ScheduledInstancesNetworkInterface
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn associate_public_ip_address(self, input: bool) -> Self
pub fn associate_public_ip_address(self, input: bool) -> Self
Indicates whether to assign a public IPv4 address to instances launched in a VPC. The public IPv4 address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true
.
sourcepub fn set_associate_public_ip_address(self, input: Option<bool>) -> Self
pub fn set_associate_public_ip_address(self, input: Option<bool>) -> Self
Indicates whether to assign a public IPv4 address to instances launched in a VPC. The public IPv4 address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true
.
sourcepub fn delete_on_termination(self, input: bool) -> Self
pub fn delete_on_termination(self, input: bool) -> Self
Indicates whether to delete the interface when the instance is terminated.
sourcepub fn set_delete_on_termination(self, input: Option<bool>) -> Self
pub fn set_delete_on_termination(self, input: Option<bool>) -> Self
Indicates whether to delete the interface when the instance is terminated.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description.
sourcepub fn device_index(self, input: i32) -> Self
pub fn device_index(self, input: i32) -> Self
The index of the device for the network interface attachment.
sourcepub fn set_device_index(self, input: Option<i32>) -> Self
pub fn set_device_index(self, input: Option<i32>) -> Self
The index of the device for the network interface attachment.
sourcepub fn groups(self, input: impl Into<String>) -> Self
pub fn groups(self, input: impl Into<String>) -> Self
Appends an item to groups
.
To override the contents of this collection use set_groups
.
The IDs of the security groups.
sourcepub fn set_groups(self, input: Option<Vec<String>>) -> Self
pub fn set_groups(self, input: Option<Vec<String>>) -> Self
The IDs of the security groups.
sourcepub fn ipv6_address_count(self, input: i32) -> Self
pub fn ipv6_address_count(self, input: i32) -> Self
The number of IPv6 addresses to assign to the network interface. The IPv6 addresses are automatically selected from the subnet range.
sourcepub fn set_ipv6_address_count(self, input: Option<i32>) -> Self
pub fn set_ipv6_address_count(self, input: Option<i32>) -> Self
The number of IPv6 addresses to assign to the network interface. The IPv6 addresses are automatically selected from the subnet range.
sourcepub fn ipv6_addresses(self, input: ScheduledInstancesIpv6Address) -> Self
pub fn ipv6_addresses(self, input: ScheduledInstancesIpv6Address) -> Self
Appends an item to ipv6_addresses
.
To override the contents of this collection use set_ipv6_addresses
.
The specific IPv6 addresses from the subnet range.
sourcepub fn set_ipv6_addresses(
self,
input: Option<Vec<ScheduledInstancesIpv6Address>>
) -> Self
pub fn set_ipv6_addresses(
self,
input: Option<Vec<ScheduledInstancesIpv6Address>>
) -> Self
The specific IPv6 addresses from the subnet range.
sourcepub fn network_interface_id(self, input: impl Into<String>) -> Self
pub fn network_interface_id(self, input: impl Into<String>) -> Self
The ID of the network interface.
sourcepub fn set_network_interface_id(self, input: Option<String>) -> Self
pub fn set_network_interface_id(self, input: Option<String>) -> Self
The ID of the network interface.
sourcepub fn private_ip_address(self, input: impl Into<String>) -> Self
pub fn private_ip_address(self, input: impl Into<String>) -> Self
The IPv4 address of the network interface within the subnet.
sourcepub fn set_private_ip_address(self, input: Option<String>) -> Self
pub fn set_private_ip_address(self, input: Option<String>) -> Self
The IPv4 address of the network interface within the subnet.
sourcepub fn private_ip_address_configs(
self,
input: ScheduledInstancesPrivateIpAddressConfig
) -> Self
pub fn private_ip_address_configs(
self,
input: ScheduledInstancesPrivateIpAddressConfig
) -> Self
Appends an item to private_ip_address_configs
.
To override the contents of this collection use set_private_ip_address_configs
.
The private IPv4 addresses.
sourcepub fn set_private_ip_address_configs(
self,
input: Option<Vec<ScheduledInstancesPrivateIpAddressConfig>>
) -> Self
pub fn set_private_ip_address_configs(
self,
input: Option<Vec<ScheduledInstancesPrivateIpAddressConfig>>
) -> Self
The private IPv4 addresses.
sourcepub fn secondary_private_ip_address_count(self, input: i32) -> Self
pub fn secondary_private_ip_address_count(self, input: i32) -> Self
The number of secondary private IPv4 addresses.
sourcepub fn set_secondary_private_ip_address_count(self, input: Option<i32>) -> Self
pub fn set_secondary_private_ip_address_count(self, input: Option<i32>) -> Self
The number of secondary private IPv4 addresses.
sourcepub fn set_subnet_id(self, input: Option<String>) -> Self
pub fn set_subnet_id(self, input: Option<String>) -> Self
The ID of the subnet.
sourcepub fn build(self) -> ScheduledInstancesNetworkInterface
pub fn build(self) -> ScheduledInstancesNetworkInterface
Consumes the builder and constructs a ScheduledInstancesNetworkInterface
.
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