com.pulumi.aws.verifiedaccess.outputs.EndpointLoadBalancerOptions 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.
The newest version!
// *** 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.verifiedaccess.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class EndpointLoadBalancerOptions {
private @Nullable String loadBalancerArn;
private @Nullable Integer port;
private @Nullable String protocol;
private @Nullable List subnetIds;
private EndpointLoadBalancerOptions() {}
public Optional loadBalancerArn() {
return Optional.ofNullable(this.loadBalancerArn);
}
public Optional port() {
return Optional.ofNullable(this.port);
}
public Optional protocol() {
return Optional.ofNullable(this.protocol);
}
public List subnetIds() {
return this.subnetIds == null ? List.of() : this.subnetIds;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EndpointLoadBalancerOptions defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String loadBalancerArn;
private @Nullable Integer port;
private @Nullable String protocol;
private @Nullable List subnetIds;
public Builder() {}
public Builder(EndpointLoadBalancerOptions defaults) {
Objects.requireNonNull(defaults);
this.loadBalancerArn = defaults.loadBalancerArn;
this.port = defaults.port;
this.protocol = defaults.protocol;
this.subnetIds = defaults.subnetIds;
}
@CustomType.Setter
public Builder loadBalancerArn(@Nullable String loadBalancerArn) {
this.loadBalancerArn = loadBalancerArn;
return this;
}
@CustomType.Setter
public Builder port(@Nullable Integer port) {
this.port = port;
return this;
}
@CustomType.Setter
public Builder protocol(@Nullable String protocol) {
this.protocol = protocol;
return this;
}
@CustomType.Setter
public Builder subnetIds(@Nullable List subnetIds) {
this.subnetIds = subnetIds;
return this;
}
public Builder subnetIds(String... subnetIds) {
return subnetIds(List.of(subnetIds));
}
public EndpointLoadBalancerOptions build() {
final var _resultValue = new EndpointLoadBalancerOptions();
_resultValue.loadBalancerArn = loadBalancerArn;
_resultValue.port = port;
_resultValue.protocol = protocol;
_resultValue.subnetIds = subnetIds;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy