Class CfnClientVpnEndpoint.ConnectionLogOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnClientVpnEndpoint.ConnectionLogOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClientVpnEndpoint.ConnectionLogOptionsProperty>
- Enclosing interface:
CfnClientVpnEndpoint.ConnectionLogOptionsProperty
@Stability(Stable)
public static final class CfnClientVpnEndpoint.ConnectionLogOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClientVpnEndpoint.ConnectionLogOptionsProperty>
A builder for
CfnClientVpnEndpoint.ConnectionLogOptionsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cloudwatchLogGroup
(String cloudwatchLogGroup) cloudwatchLogStream
(String cloudwatchLogStream) Sets the value ofCfnClientVpnEndpoint.ConnectionLogOptionsProperty.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnClientVpnEndpoint.ConnectionLogOptionsProperty.getEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnClientVpnEndpoint.ConnectionLogOptionsProperty.Builder enabled(Boolean enabled) Sets the value ofCfnClientVpnEndpoint.ConnectionLogOptionsProperty.getEnabled()
- Parameters:
enabled
- Indicates whether connection logging is enabled. This parameter is required.- Returns:
this
-
enabled
@Stability(Stable) public CfnClientVpnEndpoint.ConnectionLogOptionsProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnClientVpnEndpoint.ConnectionLogOptionsProperty.getEnabled()
- Parameters:
enabled
- Indicates whether connection logging is enabled. This parameter is required.- Returns:
this
-
cloudwatchLogGroup
@Stability(Stable) public CfnClientVpnEndpoint.ConnectionLogOptionsProperty.Builder cloudwatchLogGroup(String cloudwatchLogGroup) - Parameters:
cloudwatchLogGroup
- The name of the CloudWatch Logs log group. Required if connection logging is enabled.- Returns:
this
-
cloudwatchLogStream
@Stability(Stable) public CfnClientVpnEndpoint.ConnectionLogOptionsProperty.Builder cloudwatchLogStream(String cloudwatchLogStream) - Parameters:
cloudwatchLogStream
- The name of the CloudWatch Logs log stream to which the connection data is published.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnClientVpnEndpoint.ConnectionLogOptionsProperty>
- Returns:
- a new instance of
CfnClientVpnEndpoint.ConnectionLogOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-