Class CfnVirtualGateway.VirtualGatewayFileAccessLogProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnVirtualGateway.VirtualGatewayFileAccessLogProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVirtualGateway.VirtualGatewayFileAccessLogProperty>
- Enclosing interface:
CfnVirtualGateway.VirtualGatewayFileAccessLogProperty
@Stability(Stable)
public static final class CfnVirtualGateway.VirtualGatewayFileAccessLogProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVirtualGateway.VirtualGatewayFileAccessLogProperty>
A builder for
CfnVirtualGateway.VirtualGatewayFileAccessLogProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.format(IResolvable format) Sets the value ofCfnVirtualGateway.VirtualGatewayFileAccessLogProperty.getFormat()Sets the value ofCfnVirtualGateway.VirtualGatewayFileAccessLogProperty.getFormat()Sets the value ofCfnVirtualGateway.VirtualGatewayFileAccessLogProperty.getPath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
path
@Stability(Stable) public CfnVirtualGateway.VirtualGatewayFileAccessLogProperty.Builder path(String path) Sets the value ofCfnVirtualGateway.VirtualGatewayFileAccessLogProperty.getPath()- Parameters:
path- The file path to write access logs to. This parameter is required. You can use/dev/stdoutto send access logs to standard out and configure your Envoy container to use a log driver, such asawslogs, to export the access logs to a log storage service such as Amazon CloudWatch Logs. You can also specify a path in the Envoy container's file system to write the files to disk.- Returns:
this
-
format
@Stability(Stable) public CfnVirtualGateway.VirtualGatewayFileAccessLogProperty.Builder format(IResolvable format) Sets the value ofCfnVirtualGateway.VirtualGatewayFileAccessLogProperty.getFormat()- Parameters:
format- The specified format for the virtual gateway access logs. It can be eitherjson_formatortext_format.- Returns:
this
-
format
@Stability(Stable) public CfnVirtualGateway.VirtualGatewayFileAccessLogProperty.Builder format(CfnVirtualGateway.LoggingFormatProperty format) Sets the value ofCfnVirtualGateway.VirtualGatewayFileAccessLogProperty.getFormat()- Parameters:
format- The specified format for the virtual gateway access logs. It can be eitherjson_formatortext_format.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVirtualGateway.VirtualGatewayFileAccessLogProperty>- Returns:
- a new instance of
CfnVirtualGateway.VirtualGatewayFileAccessLogProperty - Throws:
NullPointerException- if any required attribute was not provided
-