Struct aws_sdk_workmail::types::builders::DnsRecordBuilder
source · #[non_exhaustive]pub struct DnsRecordBuilder { /* private fields */ }
Expand description
A builder for DnsRecord
.
Implementations§
source§impl DnsRecordBuilder
impl DnsRecordBuilder
sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
The RFC 1035 record type. Possible values: CNAME
, A
, MX
.
sourcepub fn set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
The RFC 1035 record type. Possible values: CNAME
, A
, MX
.
sourcepub fn get_type(&self) -> &Option<String>
pub fn get_type(&self) -> &Option<String>
The RFC 1035 record type. Possible values: CNAME
, A
, MX
.
sourcepub fn hostname(self, input: impl Into<String>) -> Self
pub fn hostname(self, input: impl Into<String>) -> Self
The DNS hostname.- For example, domain.example.com
.
sourcepub fn set_hostname(self, input: Option<String>) -> Self
pub fn set_hostname(self, input: Option<String>) -> Self
The DNS hostname.- For example, domain.example.com
.
sourcepub fn get_hostname(&self) -> &Option<String>
pub fn get_hostname(&self) -> &Option<String>
The DNS hostname.- For example, domain.example.com
.
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
The value returned by the DNS for a query to that hostname and record type.
sourcepub fn set_value(self, input: Option<String>) -> Self
pub fn set_value(self, input: Option<String>) -> Self
The value returned by the DNS for a query to that hostname and record type.
Trait Implementations§
source§impl Clone for DnsRecordBuilder
impl Clone for DnsRecordBuilder
source§fn clone(&self) -> DnsRecordBuilder
fn clone(&self) -> DnsRecordBuilder
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 DnsRecordBuilder
impl Debug for DnsRecordBuilder
source§impl Default for DnsRecordBuilder
impl Default for DnsRecordBuilder
source§fn default() -> DnsRecordBuilder
fn default() -> DnsRecordBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DnsRecordBuilder
impl PartialEq for DnsRecordBuilder
source§fn eq(&self, other: &DnsRecordBuilder) -> bool
fn eq(&self, other: &DnsRecordBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DnsRecordBuilder
Auto Trait Implementations§
impl Freeze for DnsRecordBuilder
impl RefUnwindSafe for DnsRecordBuilder
impl Send for DnsRecordBuilder
impl Sync for DnsRecordBuilder
impl Unpin for DnsRecordBuilder
impl UnwindSafe for DnsRecordBuilder
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.