Struct aws_sdk_lightsail::operation::set_ip_address_type::builders::SetIpAddressTypeInputBuilder
source · #[non_exhaustive]pub struct SetIpAddressTypeInputBuilder { /* private fields */ }
Expand description
A builder for SetIpAddressTypeInput
.
Implementations§
source§impl SetIpAddressTypeInputBuilder
impl SetIpAddressTypeInputBuilder
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.
This field is required.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.
sourcepub fn build(self) -> Result<SetIpAddressTypeInput, BuildError>
pub fn build(self) -> Result<SetIpAddressTypeInput, BuildError>
Consumes the builder and constructs a SetIpAddressTypeInput
.
source§impl SetIpAddressTypeInputBuilder
impl SetIpAddressTypeInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<SetIpAddressTypeOutput, SdkError<SetIpAddressTypeError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<SetIpAddressTypeOutput, SdkError<SetIpAddressTypeError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SetIpAddressTypeInputBuilder
impl Clone for SetIpAddressTypeInputBuilder
source§fn clone(&self) -> SetIpAddressTypeInputBuilder
fn clone(&self) -> SetIpAddressTypeInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SetIpAddressTypeInputBuilder
impl Debug for SetIpAddressTypeInputBuilder
source§impl Default for SetIpAddressTypeInputBuilder
impl Default for SetIpAddressTypeInputBuilder
source§fn default() -> SetIpAddressTypeInputBuilder
fn default() -> SetIpAddressTypeInputBuilder
source§impl PartialEq for SetIpAddressTypeInputBuilder
impl PartialEq for SetIpAddressTypeInputBuilder
source§fn eq(&self, other: &SetIpAddressTypeInputBuilder) -> bool
fn eq(&self, other: &SetIpAddressTypeInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SetIpAddressTypeInputBuilder
Auto Trait Implementations§
impl Freeze for SetIpAddressTypeInputBuilder
impl RefUnwindSafe for SetIpAddressTypeInputBuilder
impl Send for SetIpAddressTypeInputBuilder
impl Sync for SetIpAddressTypeInputBuilder
impl Unpin for SetIpAddressTypeInputBuilder
impl UnwindSafe for SetIpAddressTypeInputBuilder
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