Class CfnVirtualNodePropsMixin.AwsCloudMapServiceDiscoveryProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appmesh.CfnVirtualNodePropsMixin.AwsCloudMapServiceDiscoveryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVirtualNodePropsMixin.AwsCloudMapServiceDiscoveryProperty>
- Enclosing interface:
CfnVirtualNodePropsMixin.AwsCloudMapServiceDiscoveryProperty
@Stability(Stable)
public static final class CfnVirtualNodePropsMixin.AwsCloudMapServiceDiscoveryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVirtualNodePropsMixin.AwsCloudMapServiceDiscoveryProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributes(List<? extends Object> attributes) attributes(IResolvable attributes) build()Builds the configured instance.ipPreference(String ipPreference) namespaceName(String namespaceName) serviceName(String serviceName)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributes
@Stability(Stable) public CfnVirtualNodePropsMixin.AwsCloudMapServiceDiscoveryProperty.Builder attributes(IResolvable attributes) - 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:
this
-
attributes
@Stability(Stable) public CfnVirtualNodePropsMixin.AwsCloudMapServiceDiscoveryProperty.Builder attributes(List<? extends Object> attributes) - 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:
this
-
ipPreference
@Stability(Stable) public CfnVirtualNodePropsMixin.AwsCloudMapServiceDiscoveryProperty.Builder ipPreference(String ipPreference) - 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:
this
-
namespaceName
@Stability(Stable) public CfnVirtualNodePropsMixin.AwsCloudMapServiceDiscoveryProperty.Builder namespaceName(String namespaceName) - Parameters:
namespaceName- The HTTP name of the AWS Cloud Map namespace to use.- Returns:
this
-
serviceName
@Stability(Stable) public CfnVirtualNodePropsMixin.AwsCloudMapServiceDiscoveryProperty.Builder serviceName(String serviceName) - Parameters:
serviceName- The name of the AWS Cloud Map service to use.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVirtualNodePropsMixin.AwsCloudMapServiceDiscoveryProperty>- Returns:
- a new instance of
CfnVirtualNodePropsMixin.AwsCloudMapServiceDiscoveryProperty - Throws:
NullPointerException- if any required attribute was not provided
-