Class VirtualGatewayProps.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.VirtualGatewayProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VirtualGatewayProps>
- Enclosing interface:
VirtualGatewayProps
@Stability(Stable)
public static final class VirtualGatewayProps.Builder
extends Object
implements software.amazon.jsii.Builder<VirtualGatewayProps>
A builder for
VirtualGatewayProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofVirtualGatewayBaseProps.getAccessLog()
backendDefaults
(BackendDefaults backendDefaults) Sets the value ofVirtualGatewayBaseProps.getBackendDefaults()
build()
Builds the configured instance.listeners
(List<? extends VirtualGatewayListener> listeners) Sets the value ofVirtualGatewayBaseProps.getListeners()
Sets the value ofVirtualGatewayProps.getMesh()
virtualGatewayName
(String virtualGatewayName) Sets the value ofVirtualGatewayBaseProps.getVirtualGatewayName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mesh
Sets the value ofVirtualGatewayProps.getMesh()
- Parameters:
mesh
- The Mesh which the VirtualGateway belongs to. This parameter is required.- Returns:
this
-
accessLog
Sets the value ofVirtualGatewayBaseProps.getAccessLog()
- Parameters:
accessLog
- Access Logging Configuration for the VirtualGateway.- Returns:
this
-
backendDefaults
@Stability(Stable) public VirtualGatewayProps.Builder backendDefaults(BackendDefaults backendDefaults) Sets the value ofVirtualGatewayBaseProps.getBackendDefaults()
- Parameters:
backendDefaults
- Default Configuration Virtual Node uses to communicate with Virtual Service.- Returns:
this
-
listeners
@Stability(Stable) public VirtualGatewayProps.Builder listeners(List<? extends VirtualGatewayListener> listeners) Sets the value ofVirtualGatewayBaseProps.getListeners()
- Parameters:
listeners
- Listeners for the VirtualGateway. Only one is supported.- Returns:
this
-
virtualGatewayName
Sets the value ofVirtualGatewayBaseProps.getVirtualGatewayName()
- Parameters:
virtualGatewayName
- Name of the VirtualGateway.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VirtualGatewayProps>
- Returns:
- a new instance of
VirtualGatewayProps
- Throws:
NullPointerException
- if any required attribute was not provided
-