pub struct Builder { /* private fields */ }
Expand description
A builder for AwsCloudMapServiceDiscovery
.
Implementations§
source§impl Builder
impl Builder
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.
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 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.
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 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 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 build(self) -> AwsCloudMapServiceDiscovery
pub fn build(self) -> AwsCloudMapServiceDiscovery
Consumes the builder and constructs a AwsCloudMapServiceDiscovery
.