Struct aws_sdk_lightsail::operation::set_ip_address_type::builders::SetIpAddressTypeFluentBuilder
source · pub struct SetIpAddressTypeFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to SetIpAddressType
.
Sets the IP address type for an Amazon Lightsail resource.
Use this action to enable dual-stack for a resource, which enables IPv4 and IPv6 for the specified resource. Alternately, you can use this action to disable dual-stack, and enable IPv4 only.
Implementations§
source§impl SetIpAddressTypeFluentBuilder
impl SetIpAddressTypeFluentBuilder
sourcepub fn as_input(&self) -> &SetIpAddressTypeInputBuilder
pub fn as_input(&self) -> &SetIpAddressTypeInputBuilder
Access the SetIpAddressType as a reference.
sourcepub async fn send(
self
) -> Result<SetIpAddressTypeOutput, SdkError<SetIpAddressTypeError, HttpResponse>>
pub async fn send( self ) -> Result<SetIpAddressTypeOutput, SdkError<SetIpAddressTypeError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<SetIpAddressTypeOutput, SetIpAddressTypeError, Self>
pub fn customize( self ) -> CustomizableOperation<SetIpAddressTypeOutput, SetIpAddressTypeError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The resource type.
The resource values are Distribution
, Instance
, and LoadBalancer
.
Distribution-related APIs are available only in the N. Virginia (us-east-1
) Amazon Web Services Region. Set your Amazon Web Services Region configuration to us-east-1
to create, view, or edit distributions.
sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The resource type.
The resource values are Distribution
, Instance
, and LoadBalancer
.
Distribution-related APIs are available only in the N. Virginia (us-east-1
) Amazon Web Services Region. Set your Amazon Web Services Region configuration to us-east-1
to create, view, or edit distributions.
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The resource type.
The resource values are Distribution
, Instance
, and LoadBalancer
.
Distribution-related APIs are available only in the N. Virginia (us-east-1
) Amazon Web Services Region. Set your Amazon Web Services Region configuration to us-east-1
to create, view, or edit distributions.
sourcepub fn resource_name(self, input: impl Into<String>) -> Self
pub fn resource_name(self, input: impl Into<String>) -> Self
The name of the resource for which to set the IP address type.
sourcepub fn set_resource_name(self, input: Option<String>) -> Self
pub fn set_resource_name(self, input: Option<String>) -> Self
The name of the resource for which to set the IP address type.
sourcepub fn get_resource_name(&self) -> &Option<String>
pub fn get_resource_name(&self) -> &Option<String>
The name of the resource for which to set the IP address type.
sourcepub fn ip_address_type(self, input: IpAddressType) -> Self
pub fn ip_address_type(self, input: IpAddressType) -> Self
The IP address type to set for the specified resource.
The possible values are ipv4
for IPv4 only, ipv6
for IPv6 only, and dualstack
for IPv4 and IPv6.
sourcepub fn set_ip_address_type(self, input: Option<IpAddressType>) -> Self
pub fn set_ip_address_type(self, input: Option<IpAddressType>) -> Self
The IP address type to set for the specified resource.
The possible values are ipv4
for IPv4 only, ipv6
for IPv6 only, and dualstack
for IPv4 and IPv6.
sourcepub fn get_ip_address_type(&self) -> &Option<IpAddressType>
pub fn get_ip_address_type(&self) -> &Option<IpAddressType>
The IP address type to set for the specified resource.
The possible values are ipv4
for IPv4 only, ipv6
for IPv6 only, and dualstack
for IPv4 and IPv6.
sourcepub fn accept_bundle_update(self, input: bool) -> Self
pub fn accept_bundle_update(self, input: bool) -> Self
Required parameter to accept the instance bundle update when changing to, and from, IPv6-only.
An instance bundle will change when switching from dual-stack
or ipv4
, to ipv6
. It also changes when switching from ipv6
, to dual-stack
or ipv4
.
You must include this parameter in the command to update the bundle. For example, if you switch from dual-stack
to ipv6
, the bundle will be updated, and billing for the IPv6-only instance bundle begins immediately.
sourcepub fn set_accept_bundle_update(self, input: Option<bool>) -> Self
pub fn set_accept_bundle_update(self, input: Option<bool>) -> Self
Required parameter to accept the instance bundle update when changing to, and from, IPv6-only.
An instance bundle will change when switching from dual-stack
or ipv4
, to ipv6
. It also changes when switching from ipv6
, to dual-stack
or ipv4
.
You must include this parameter in the command to update the bundle. For example, if you switch from dual-stack
to ipv6
, the bundle will be updated, and billing for the IPv6-only instance bundle begins immediately.
sourcepub fn get_accept_bundle_update(&self) -> &Option<bool>
pub fn get_accept_bundle_update(&self) -> &Option<bool>
Required parameter to accept the instance bundle update when changing to, and from, IPv6-only.
An instance bundle will change when switching from dual-stack
or ipv4
, to ipv6
. It also changes when switching from ipv6
, to dual-stack
or ipv4
.
You must include this parameter in the command to update the bundle. For example, if you switch from dual-stack
to ipv6
, the bundle will be updated, and billing for the IPv6-only instance bundle begins immediately.
Trait Implementations§
source§impl Clone for SetIpAddressTypeFluentBuilder
impl Clone for SetIpAddressTypeFluentBuilder
source§fn clone(&self) -> SetIpAddressTypeFluentBuilder
fn clone(&self) -> SetIpAddressTypeFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for SetIpAddressTypeFluentBuilder
impl !RefUnwindSafe for SetIpAddressTypeFluentBuilder
impl Send for SetIpAddressTypeFluentBuilder
impl Sync for SetIpAddressTypeFluentBuilder
impl Unpin for SetIpAddressTypeFluentBuilder
impl !UnwindSafe for SetIpAddressTypeFluentBuilder
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> 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