#[non_exhaustive]pub struct IpAddressRequestBuilder { /* private fields */ }
Expand description
A builder for IpAddressRequest
.
Implementations§
source§impl IpAddressRequestBuilder
impl IpAddressRequestBuilder
sourcepub fn subnet_id(self, input: impl Into<String>) -> Self
pub fn subnet_id(self, input: impl Into<String>) -> Self
The ID of the subnet that contains the IP address.
This field is required.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 that contains the IP address.
sourcepub fn get_subnet_id(&self) -> &Option<String>
pub fn get_subnet_id(&self) -> &Option<String>
The ID of the subnet that contains the IP address.
sourcepub fn ip(self, input: impl Into<String>) -> Self
pub fn ip(self, input: impl Into<String>) -> Self
The IPv4 address that you want to use for DNS queries.
sourcepub fn set_ip(self, input: Option<String>) -> Self
pub fn set_ip(self, input: Option<String>) -> Self
The IPv4 address that you want to use for DNS queries.
sourcepub fn ipv6(self, input: impl Into<String>) -> Self
pub fn ipv6(self, input: impl Into<String>) -> Self
The IPv6 address that you want to use for DNS queries.
sourcepub fn set_ipv6(self, input: Option<String>) -> Self
pub fn set_ipv6(self, input: Option<String>) -> Self
The IPv6 address that you want to use for DNS queries.
sourcepub fn get_ipv6(&self) -> &Option<String>
pub fn get_ipv6(&self) -> &Option<String>
The IPv6 address that you want to use for DNS queries.
sourcepub fn build(self) -> Result<IpAddressRequest, BuildError>
pub fn build(self) -> Result<IpAddressRequest, BuildError>
Consumes the builder and constructs a IpAddressRequest
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for IpAddressRequestBuilder
impl Clone for IpAddressRequestBuilder
source§fn clone(&self) -> IpAddressRequestBuilder
fn clone(&self) -> IpAddressRequestBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IpAddressRequestBuilder
impl Debug for IpAddressRequestBuilder
source§impl Default for IpAddressRequestBuilder
impl Default for IpAddressRequestBuilder
source§fn default() -> IpAddressRequestBuilder
fn default() -> IpAddressRequestBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for IpAddressRequestBuilder
impl PartialEq for IpAddressRequestBuilder
source§fn eq(&self, other: &IpAddressRequestBuilder) -> bool
fn eq(&self, other: &IpAddressRequestBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IpAddressRequestBuilder
Auto Trait Implementations§
impl RefUnwindSafe for IpAddressRequestBuilder
impl Send for IpAddressRequestBuilder
impl Sync for IpAddressRequestBuilder
impl Unpin for IpAddressRequestBuilder
impl UnwindSafe for IpAddressRequestBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.