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 ==
.