Class CfnVirtualRouterMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appmesh.CfnVirtualRouterMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVirtualRouterMixinProps>
- Enclosing interface:
CfnVirtualRouterMixinProps
@Stability(Stable)
public static final class CfnVirtualRouterMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVirtualRouterMixinProps>
A builder for
CfnVirtualRouterMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnVirtualRouterMixinProps.getMeshName()Sets the value ofCfnVirtualRouterMixinProps.getMeshOwner()Sets the value ofCfnVirtualRouterMixinProps.getSpec()spec(IResolvable spec) Sets the value ofCfnVirtualRouterMixinProps.getSpec()Sets the value ofCfnVirtualRouterMixinProps.getTags()virtualRouterName(String virtualRouterName) Sets the value ofCfnVirtualRouterMixinProps.getVirtualRouterName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
meshName
Sets the value ofCfnVirtualRouterMixinProps.getMeshName()- Parameters:
meshName- The name of the service mesh to create the virtual router in.- Returns:
this
-
meshOwner
Sets the value ofCfnVirtualRouterMixinProps.getMeshOwner()- Parameters:
meshOwner- The AWS IAM account ID of the service mesh owner. If the account ID is not your own, then the account that you specify must share the mesh with your account before you can create the resource in the service mesh. For more information about mesh sharing, see Working with shared meshes .- Returns:
this
-
spec
Sets the value ofCfnVirtualRouterMixinProps.getSpec()- Parameters:
spec- The virtual router specification to apply.- Returns:
this
-
spec
@Stability(Stable) public CfnVirtualRouterMixinProps.Builder spec(CfnVirtualRouterPropsMixin.VirtualRouterSpecProperty spec) Sets the value ofCfnVirtualRouterMixinProps.getSpec()- Parameters:
spec- The virtual router specification to apply.- Returns:
this
-
tags
Sets the value ofCfnVirtualRouterMixinProps.getTags()- Parameters:
tags- Optional metadata that you can apply to the virtual router to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.- Returns:
this
-
virtualRouterName
@Stability(Stable) public CfnVirtualRouterMixinProps.Builder virtualRouterName(String virtualRouterName) Sets the value ofCfnVirtualRouterMixinProps.getVirtualRouterName()- Parameters:
virtualRouterName- The name to use for the virtual router.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVirtualRouterMixinProps>- Returns:
- a new instance of
CfnVirtualRouterMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-