com.pulumi.aws.ec2.outputs.VpnConnectionTunnel1LogOptionsCloudwatchLogOptions Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.ec2.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class VpnConnectionTunnel1LogOptionsCloudwatchLogOptions {
/**
* @return Enable or disable VPN tunnel logging feature. The default is `false`.
*
*/
private @Nullable Boolean logEnabled;
/**
* @return The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to.
*
*/
private @Nullable String logGroupArn;
/**
* @return Set log format. Default format is json. Possible values are: `json` and `text`. The default is `json`.
*
*/
private @Nullable String logOutputFormat;
private VpnConnectionTunnel1LogOptionsCloudwatchLogOptions() {}
/**
* @return Enable or disable VPN tunnel logging feature. The default is `false`.
*
*/
public Optional logEnabled() {
return Optional.ofNullable(this.logEnabled);
}
/**
* @return The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to.
*
*/
public Optional logGroupArn() {
return Optional.ofNullable(this.logGroupArn);
}
/**
* @return Set log format. Default format is json. Possible values are: `json` and `text`. The default is `json`.
*
*/
public Optional logOutputFormat() {
return Optional.ofNullable(this.logOutputFormat);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VpnConnectionTunnel1LogOptionsCloudwatchLogOptions defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean logEnabled;
private @Nullable String logGroupArn;
private @Nullable String logOutputFormat;
public Builder() {}
public Builder(VpnConnectionTunnel1LogOptionsCloudwatchLogOptions defaults) {
Objects.requireNonNull(defaults);
this.logEnabled = defaults.logEnabled;
this.logGroupArn = defaults.logGroupArn;
this.logOutputFormat = defaults.logOutputFormat;
}
@CustomType.Setter
public Builder logEnabled(@Nullable Boolean logEnabled) {
this.logEnabled = logEnabled;
return this;
}
@CustomType.Setter
public Builder logGroupArn(@Nullable String logGroupArn) {
this.logGroupArn = logGroupArn;
return this;
}
@CustomType.Setter
public Builder logOutputFormat(@Nullable String logOutputFormat) {
this.logOutputFormat = logOutputFormat;
return this;
}
public VpnConnectionTunnel1LogOptionsCloudwatchLogOptions build() {
final var _resultValue = new VpnConnectionTunnel1LogOptionsCloudwatchLogOptions();
_resultValue.logEnabled = logEnabled;
_resultValue.logGroupArn = logGroupArn;
_resultValue.logOutputFormat = logOutputFormat;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy