Struct aws_sdk_appmesh::types::builders::DnsServiceDiscoveryBuilder
source · #[non_exhaustive]pub struct DnsServiceDiscoveryBuilder { /* private fields */ }
Expand description
A builder for DnsServiceDiscovery
.
Implementations§
source§impl DnsServiceDiscoveryBuilder
impl DnsServiceDiscoveryBuilder
sourcepub fn hostname(self, input: impl Into<String>) -> Self
pub fn hostname(self, input: impl Into<String>) -> Self
Specifies the DNS service discovery hostname for the virtual node.
This field is required.sourcepub fn set_hostname(self, input: Option<String>) -> Self
pub fn set_hostname(self, input: Option<String>) -> Self
Specifies the DNS service discovery hostname for the virtual node.
sourcepub fn get_hostname(&self) -> &Option<String>
pub fn get_hostname(&self) -> &Option<String>
Specifies the DNS service discovery hostname for the virtual node.
sourcepub fn response_type(self, input: DnsResponseType) -> Self
pub fn response_type(self, input: DnsResponseType) -> Self
Specifies the DNS response type for the virtual node.
sourcepub fn set_response_type(self, input: Option<DnsResponseType>) -> Self
pub fn set_response_type(self, input: Option<DnsResponseType>) -> Self
Specifies the DNS response type for the virtual node.
sourcepub fn get_response_type(&self) -> &Option<DnsResponseType>
pub fn get_response_type(&self) -> &Option<DnsResponseType>
Specifies the DNS response type for the virtual node.
sourcepub fn ip_preference(self, input: IpPreference) -> Self
pub fn ip_preference(self, input: IpPreference) -> Self
The preferred IP version that this virtual node uses. Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node.
sourcepub fn set_ip_preference(self, input: Option<IpPreference>) -> Self
pub fn set_ip_preference(self, input: Option<IpPreference>) -> Self
The preferred IP version that this virtual node uses. Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node.
sourcepub fn get_ip_preference(&self) -> &Option<IpPreference>
pub fn get_ip_preference(&self) -> &Option<IpPreference>
The preferred IP version that this virtual node uses. Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node.
sourcepub fn build(self) -> Result<DnsServiceDiscovery, BuildError>
pub fn build(self) -> Result<DnsServiceDiscovery, BuildError>
Consumes the builder and constructs a DnsServiceDiscovery
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DnsServiceDiscoveryBuilder
impl Clone for DnsServiceDiscoveryBuilder
source§fn clone(&self) -> DnsServiceDiscoveryBuilder
fn clone(&self) -> DnsServiceDiscoveryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DnsServiceDiscoveryBuilder
impl Debug for DnsServiceDiscoveryBuilder
source§impl Default for DnsServiceDiscoveryBuilder
impl Default for DnsServiceDiscoveryBuilder
source§fn default() -> DnsServiceDiscoveryBuilder
fn default() -> DnsServiceDiscoveryBuilder
source§impl PartialEq for DnsServiceDiscoveryBuilder
impl PartialEq for DnsServiceDiscoveryBuilder
source§fn eq(&self, other: &DnsServiceDiscoveryBuilder) -> bool
fn eq(&self, other: &DnsServiceDiscoveryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DnsServiceDiscoveryBuilder
Auto Trait Implementations§
impl Freeze for DnsServiceDiscoveryBuilder
impl RefUnwindSafe for DnsServiceDiscoveryBuilder
impl Send for DnsServiceDiscoveryBuilder
impl Sync for DnsServiceDiscoveryBuilder
impl Unpin for DnsServiceDiscoveryBuilder
impl UnwindSafe for DnsServiceDiscoveryBuilder
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