com.pulumi.aws.lb.outputs.LoadBalancerConnectionLogs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.lb.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LoadBalancerConnectionLogs {
/**
* @return S3 bucket name to store the logs in.
*
*/
private String bucket;
/**
* @return Boolean to enable / disable `connection_logs`. Defaults to `false`, even when `bucket` is specified.
*
*/
private @Nullable Boolean enabled;
/**
* @return S3 bucket prefix. Logs are stored in the root if not configured.
*
*/
private @Nullable String prefix;
private LoadBalancerConnectionLogs() {}
/**
* @return S3 bucket name to store the logs in.
*
*/
public String bucket() {
return this.bucket;
}
/**
* @return Boolean to enable / disable `connection_logs`. Defaults to `false`, even when `bucket` is specified.
*
*/
public Optional enabled() {
return Optional.ofNullable(this.enabled);
}
/**
* @return S3 bucket prefix. Logs are stored in the root if not configured.
*
*/
public Optional prefix() {
return Optional.ofNullable(this.prefix);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LoadBalancerConnectionLogs defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String bucket;
private @Nullable Boolean enabled;
private @Nullable String prefix;
public Builder() {}
public Builder(LoadBalancerConnectionLogs defaults) {
Objects.requireNonNull(defaults);
this.bucket = defaults.bucket;
this.enabled = defaults.enabled;
this.prefix = defaults.prefix;
}
@CustomType.Setter
public Builder bucket(String bucket) {
if (bucket == null) {
throw new MissingRequiredPropertyException("LoadBalancerConnectionLogs", "bucket");
}
this.bucket = bucket;
return this;
}
@CustomType.Setter
public Builder enabled(@Nullable Boolean enabled) {
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder prefix(@Nullable String prefix) {
this.prefix = prefix;
return this;
}
public LoadBalancerConnectionLogs build() {
final var _resultValue = new LoadBalancerConnectionLogs();
_resultValue.bucket = bucket;
_resultValue.enabled = enabled;
_resultValue.prefix = prefix;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy