Class CfnMesh.MeshServiceDiscoveryProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnMesh.MeshServiceDiscoveryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMesh.MeshServiceDiscoveryProperty>
- Enclosing interface:
CfnMesh.MeshServiceDiscoveryProperty
@Stability(Stable)
public static final class CfnMesh.MeshServiceDiscoveryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMesh.MeshServiceDiscoveryProperty>
A builder for
CfnMesh.MeshServiceDiscoveryProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.ipPreference
(String ipPreference) Sets the value ofCfnMesh.MeshServiceDiscoveryProperty.getIpPreference()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ipPreference
@Stability(Stable) public CfnMesh.MeshServiceDiscoveryProperty.Builder ipPreference(String ipPreference) Sets the value ofCfnMesh.MeshServiceDiscoveryProperty.getIpPreference()
- Parameters:
ipPreference
- The IP version to use to control traffic within the mesh.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMesh.MeshServiceDiscoveryProperty>
- Returns:
- a new instance of
CfnMesh.MeshServiceDiscoveryProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-