Class CfnVPNConnection.CloudwatchLogOptionsSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVPNConnection.CloudwatchLogOptionsSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPNConnection.CloudwatchLogOptionsSpecificationProperty>
- Enclosing interface:
CfnVPNConnection.CloudwatchLogOptionsSpecificationProperty
@Stability(Stable)
public static final class CfnVPNConnection.CloudwatchLogOptionsSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPNConnection.CloudwatchLogOptionsSpecificationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.logEnabled(Boolean logEnabled) logEnabled(IResolvable logEnabled) logGroupArn(String logGroupArn) logOutputFormat(String logOutputFormat)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logEnabled
@Stability(Stable) public CfnVPNConnection.CloudwatchLogOptionsSpecificationProperty.Builder logEnabled(Boolean logEnabled) - Parameters:
logEnabled- Enable or disable VPN tunnel logging feature. Default value isFalse. Valid values:True|False- Returns:
this
-
logEnabled
@Stability(Stable) public CfnVPNConnection.CloudwatchLogOptionsSpecificationProperty.Builder logEnabled(IResolvable logEnabled) - Parameters:
logEnabled- Enable or disable VPN tunnel logging feature. Default value isFalse. Valid values:True|False- Returns:
this
-
logGroupArn
@Stability(Stable) public CfnVPNConnection.CloudwatchLogOptionsSpecificationProperty.Builder logGroupArn(String logGroupArn) - Parameters:
logGroupArn- The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to.- Returns:
this
-
logOutputFormat
@Stability(Stable) public CfnVPNConnection.CloudwatchLogOptionsSpecificationProperty.Builder logOutputFormat(String logOutputFormat) - Parameters:
logOutputFormat- Set log format. Default format isjson. Valid values:json|text- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVPNConnection.CloudwatchLogOptionsSpecificationProperty>- Returns:
- a new instance of
CfnVPNConnection.CloudwatchLogOptionsSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-