#[non_exhaustive]pub struct AwsCloudMapServiceDiscoveryBuilder { /* private fields */ }
Expand description
A builder for AwsCloudMapServiceDiscovery
.
Implementations§
source§impl AwsCloudMapServiceDiscoveryBuilder
impl AwsCloudMapServiceDiscoveryBuilder
sourcepub fn namespace_name(self, input: impl Into<String>) -> Self
pub fn namespace_name(self, input: impl Into<String>) -> Self
The name of the Cloud Map namespace to use.
This field is required.sourcepub fn set_namespace_name(self, input: Option<String>) -> Self
pub fn set_namespace_name(self, input: Option<String>) -> Self
The name of the Cloud Map namespace to use.
sourcepub fn get_namespace_name(&self) -> &Option<String>
pub fn get_namespace_name(&self) -> &Option<String>
The name of the Cloud Map namespace to use.
sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
The name of the Cloud Map service to use.
This field is required.sourcepub fn set_service_name(self, input: Option<String>) -> Self
pub fn set_service_name(self, input: Option<String>) -> Self
The name of the Cloud Map service to use.
sourcepub fn get_service_name(&self) -> &Option<String>
pub fn get_service_name(&self) -> &Option<String>
The name of the Cloud Map service to use.
sourcepub fn attributes(self, input: AwsCloudMapInstanceAttribute) -> Self
pub fn attributes(self, input: AwsCloudMapInstanceAttribute) -> Self
Appends an item to attributes
.
To override the contents of this collection use set_attributes
.
A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all of the specified key/value pairs will be returned.
sourcepub fn set_attributes(
self,
input: Option<Vec<AwsCloudMapInstanceAttribute>>
) -> Self
pub fn set_attributes( self, input: Option<Vec<AwsCloudMapInstanceAttribute>> ) -> Self
A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all of the specified key/value pairs will be returned.
sourcepub fn get_attributes(&self) -> &Option<Vec<AwsCloudMapInstanceAttribute>>
pub fn get_attributes(&self) -> &Option<Vec<AwsCloudMapInstanceAttribute>>
A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all of the specified key/value pairs will be returned.
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<AwsCloudMapServiceDiscovery, BuildError>
pub fn build(self) -> Result<AwsCloudMapServiceDiscovery, BuildError>
Consumes the builder and constructs a AwsCloudMapServiceDiscovery
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AwsCloudMapServiceDiscoveryBuilder
impl Clone for AwsCloudMapServiceDiscoveryBuilder
source§fn clone(&self) -> AwsCloudMapServiceDiscoveryBuilder
fn clone(&self) -> AwsCloudMapServiceDiscoveryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AwsCloudMapServiceDiscoveryBuilder
impl Default for AwsCloudMapServiceDiscoveryBuilder
source§fn default() -> AwsCloudMapServiceDiscoveryBuilder
fn default() -> AwsCloudMapServiceDiscoveryBuilder
source§impl PartialEq for AwsCloudMapServiceDiscoveryBuilder
impl PartialEq for AwsCloudMapServiceDiscoveryBuilder
source§fn eq(&self, other: &AwsCloudMapServiceDiscoveryBuilder) -> bool
fn eq(&self, other: &AwsCloudMapServiceDiscoveryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsCloudMapServiceDiscoveryBuilder
Auto Trait Implementations§
impl Freeze for AwsCloudMapServiceDiscoveryBuilder
impl RefUnwindSafe for AwsCloudMapServiceDiscoveryBuilder
impl Send for AwsCloudMapServiceDiscoveryBuilder
impl Sync for AwsCloudMapServiceDiscoveryBuilder
impl Unpin for AwsCloudMapServiceDiscoveryBuilder
impl UnwindSafe for AwsCloudMapServiceDiscoveryBuilder
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