Interface AwsCloudMapServiceDiscovery.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsCloudMapServiceDiscovery.Builder,
,AwsCloudMapServiceDiscovery> SdkBuilder<AwsCloudMapServiceDiscovery.Builder,
,AwsCloudMapServiceDiscovery> SdkPojo
- Enclosing class:
AwsCloudMapServiceDiscovery
-
Method Summary
Modifier and TypeMethodDescriptionattributes
(Collection<AwsCloudMapInstanceAttribute> 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.attributes
(Consumer<AwsCloudMapInstanceAttribute.Builder>... 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.attributes
(AwsCloudMapInstanceAttribute... 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.ipPreference
(String ipPreference) The preferred IP version that this virtual node uses.ipPreference
(IpPreference ipPreference) The preferred IP version that this virtual node uses.namespaceName
(String namespaceName) The name of the Cloud Map namespace to use.serviceName
(String serviceName) The name of the Cloud Map service to use.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
AwsCloudMapServiceDiscovery.Builder attributes(Consumer<AwsCloudMapInstanceAttribute.Builder>... 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.
This is a convenience method that creates an instance of theAwsCloudMapInstanceAttribute.Builder
avoiding the need to create one manually viaAwsCloudMapInstanceAttribute.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattributes(List<AwsCloudMapInstanceAttribute>)
.- Parameters:
attributes
- a consumer that will call methods onAwsCloudMapInstanceAttribute.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
namespaceName
The name of the Cloud Map namespace to use.
- Parameters:
namespaceName
- The name of the Cloud Map namespace to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceName
The name of the Cloud Map service to use.
- Parameters:
serviceName
- The name of the Cloud Map service to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-