public static final class CfnVirtualRouter.Builder
extends java.lang.Object
CfnVirtualRouter
.Modifier and Type | Method and Description |
---|---|
CfnVirtualRouter |
build() |
static CfnVirtualRouter.Builder |
create(Construct scope,
java.lang.String id) |
CfnVirtualRouter.Builder |
meshName(java.lang.String meshName)
The name of the service mesh to create the virtual router in.
|
CfnVirtualRouter.Builder |
meshOwner(java.lang.String meshOwner)
The AWS IAM account ID of the service mesh owner.
|
CfnVirtualRouter.Builder |
spec(CfnVirtualRouter.VirtualRouterSpecProperty spec)
The virtual router specification to apply.
|
CfnVirtualRouter.Builder |
spec(IResolvable spec)
The virtual router specification to apply.
|
CfnVirtualRouter.Builder |
tags(java.util.List<? extends CfnTag> tags)
Optional metadata that you can apply to the virtual router to assist with categorization and organization.
|
CfnVirtualRouter.Builder |
virtualRouterName(java.lang.String virtualRouterName)
The name to use for the virtual router.
|
public static CfnVirtualRouter.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnVirtualRouter.PortMappingProperty.Builder
.public CfnVirtualRouter.Builder meshName(java.lang.String meshName)
meshName
- The name of the service mesh to create the virtual router in. This parameter is required.this
public CfnVirtualRouter.Builder spec(IResolvable spec)
spec
- The virtual router specification to apply. This parameter is required.this
public CfnVirtualRouter.Builder spec(CfnVirtualRouter.VirtualRouterSpecProperty spec)
spec
- The virtual router specification to apply. This parameter is required.this
public CfnVirtualRouter.Builder meshOwner(java.lang.String meshOwner)
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 .
meshOwner
- The AWS IAM account ID of the service mesh owner. This parameter is required.this
public CfnVirtualRouter.Builder tags(java.util.List<? extends CfnTag> tags)
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.
tags
- Optional metadata that you can apply to the virtual router to assist with categorization and organization. This parameter is required.this
public CfnVirtualRouter.Builder virtualRouterName(java.lang.String virtualRouterName)
virtualRouterName
- The name to use for the virtual router. This parameter is required.this
public CfnVirtualRouter build()