Struct aws_sdk_route53domains::types::builders::NameserverBuilder
source · #[non_exhaustive]pub struct NameserverBuilder { /* private fields */ }
Expand description
A builder for Nameserver
.
Implementations§
source§impl NameserverBuilder
impl NameserverBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The fully qualified host name of the name server.
Constraint: Maximum 255 characters
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The fully qualified host name of the name server.
Constraint: Maximum 255 characters
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The fully qualified host name of the name server.
Constraint: Maximum 255 characters
sourcepub fn glue_ips(self, input: impl Into<String>) -> Self
pub fn glue_ips(self, input: impl Into<String>) -> Self
Appends an item to glue_ips
.
To override the contents of this collection use set_glue_ips
.
Glue IP address of a name server entry. Glue IP addresses are required only when the name of the name server is a subdomain of the domain. For example, if your domain is example.com and the name server for the domain is ns.example.com, you need to specify the IP address for ns.example.com.
Constraints: The list can contain only one IPv4 and one IPv6 address.
sourcepub fn set_glue_ips(self, input: Option<Vec<String>>) -> Self
pub fn set_glue_ips(self, input: Option<Vec<String>>) -> Self
Glue IP address of a name server entry. Glue IP addresses are required only when the name of the name server is a subdomain of the domain. For example, if your domain is example.com and the name server for the domain is ns.example.com, you need to specify the IP address for ns.example.com.
Constraints: The list can contain only one IPv4 and one IPv6 address.
sourcepub fn get_glue_ips(&self) -> &Option<Vec<String>>
pub fn get_glue_ips(&self) -> &Option<Vec<String>>
Glue IP address of a name server entry. Glue IP addresses are required only when the name of the name server is a subdomain of the domain. For example, if your domain is example.com and the name server for the domain is ns.example.com, you need to specify the IP address for ns.example.com.
Constraints: The list can contain only one IPv4 and one IPv6 address.
sourcepub fn build(self) -> Result<Nameserver, BuildError>
pub fn build(self) -> Result<Nameserver, BuildError>
Consumes the builder and constructs a Nameserver
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for NameserverBuilder
impl Clone for NameserverBuilder
source§fn clone(&self) -> NameserverBuilder
fn clone(&self) -> NameserverBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NameserverBuilder
impl Debug for NameserverBuilder
source§impl Default for NameserverBuilder
impl Default for NameserverBuilder
source§fn default() -> NameserverBuilder
fn default() -> NameserverBuilder
source§impl PartialEq for NameserverBuilder
impl PartialEq for NameserverBuilder
source§fn eq(&self, other: &NameserverBuilder) -> bool
fn eq(&self, other: &NameserverBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NameserverBuilder
Auto Trait Implementations§
impl Freeze for NameserverBuilder
impl RefUnwindSafe for NameserverBuilder
impl Send for NameserverBuilder
impl Sync for NameserverBuilder
impl Unpin for NameserverBuilder
impl UnwindSafe for NameserverBuilder
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