public static final class CfnVirtualServiceProps.Builder
extends java.lang.Object
CfnVirtualServiceProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnVirtualServiceProps |
build()
Builds the configured instance.
|
CfnVirtualServiceProps.Builder |
meshName(java.lang.String meshName)
Sets the value of
CfnVirtualServiceProps.getMeshName() |
CfnVirtualServiceProps.Builder |
meshOwner(java.lang.String meshOwner)
Sets the value of
CfnVirtualServiceProps.getMeshOwner() |
CfnVirtualServiceProps.Builder |
spec(CfnVirtualService.VirtualServiceSpecProperty spec)
Sets the value of
CfnVirtualServiceProps.getSpec() |
CfnVirtualServiceProps.Builder |
spec(IResolvable spec)
Sets the value of
CfnVirtualServiceProps.getSpec() |
CfnVirtualServiceProps.Builder |
tags(java.util.List<? extends CfnTag> tags)
Sets the value of
CfnVirtualServiceProps.getTags() |
CfnVirtualServiceProps.Builder |
virtualServiceName(java.lang.String virtualServiceName)
Sets the value of
CfnVirtualServiceProps.getVirtualServiceName() |
public CfnVirtualServiceProps.Builder meshName(java.lang.String meshName)
CfnVirtualServiceProps.getMeshName()
meshName
- The name of the service mesh to create the virtual service in. This parameter is required.this
public CfnVirtualServiceProps.Builder spec(IResolvable spec)
CfnVirtualServiceProps.getSpec()
spec
- The virtual service specification to apply. This parameter is required.this
public CfnVirtualServiceProps.Builder spec(CfnVirtualService.VirtualServiceSpecProperty spec)
CfnVirtualServiceProps.getSpec()
spec
- The virtual service specification to apply. This parameter is required.this
public CfnVirtualServiceProps.Builder virtualServiceName(java.lang.String virtualServiceName)
CfnVirtualServiceProps.getVirtualServiceName()
virtualServiceName
- The name to use for the virtual service. This parameter is required.this
public CfnVirtualServiceProps.Builder meshOwner(java.lang.String meshOwner)
CfnVirtualServiceProps.getMeshOwner()
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 .this
public CfnVirtualServiceProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnVirtualServiceProps.getTags()
tags
- Optional metadata that you can apply to the virtual service 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.this
public CfnVirtualServiceProps build()
CfnVirtualServiceProps
java.lang.NullPointerException
- if any required attribute was not provided