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 TypeMethodDescriptionbgpLogEnabled(Boolean bgpLogEnabled) bgpLogEnabled(IResolvable bgpLogEnabled) bgpLogGroupArn(String bgpLogGroupArn) bgpLogOutputFormat(String bgpLogOutputFormat) build()Builds the configured instance.logEnabled(Boolean logEnabled) logEnabled(IResolvable logEnabled) logGroupArn(String logGroupArn) logOutputFormat(String logOutputFormat)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bgpLogEnabled
@Stability(Stable) public CfnVPNConnection.CloudwatchLogOptionsSpecificationProperty.Builder bgpLogEnabled(Boolean bgpLogEnabled) - Parameters:
bgpLogEnabled- Specifies whether to enable BGP logging for the VPN connection. Default value isFalse. Valid values:True|False- Returns:
this
-
bgpLogEnabled
@Stability(Stable) public CfnVPNConnection.CloudwatchLogOptionsSpecificationProperty.Builder bgpLogEnabled(IResolvable bgpLogEnabled) - Parameters:
bgpLogEnabled- Specifies whether to enable BGP logging for the VPN connection. Default value isFalse. Valid values:True|False- Returns:
this
-
bgpLogGroupArn
@Stability(Stable) public CfnVPNConnection.CloudwatchLogOptionsSpecificationProperty.Builder bgpLogGroupArn(String bgpLogGroupArn) - Parameters:
bgpLogGroupArn- The Amazon Resource Name (ARN) of the CloudWatch log group where BGP logs will be sent.- Returns:
this
-
bgpLogOutputFormat
@Stability(Stable) public CfnVPNConnection.CloudwatchLogOptionsSpecificationProperty.Builder bgpLogOutputFormat(String bgpLogOutputFormat) Sets the value ofCfnVPNConnection.CloudwatchLogOptionsSpecificationProperty.getBgpLogOutputFormat()- Parameters:
bgpLogOutputFormat- The desired output format for BGP logs to be sent to CloudWatch. Default format isjson. Valid values:json|text- Returns:
this
-
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
-