com.pulumi.aws.redshiftserverless.outputs.EndpointAccessVpcEndpoint 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.redshiftserverless.outputs;
import com.pulumi.aws.redshiftserverless.outputs.EndpointAccessVpcEndpointNetworkInterface;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class EndpointAccessVpcEndpoint {
/**
* @return The network interfaces of the endpoint.. See `Network Interface` below.
*
*/
private @Nullable List networkInterfaces;
/**
* @return The DNS address of the VPC endpoint.
*
*/
private @Nullable String vpcEndpointId;
/**
* @return The port that Amazon Redshift Serverless listens on.
*
*/
private @Nullable String vpcId;
private EndpointAccessVpcEndpoint() {}
/**
* @return The network interfaces of the endpoint.. See `Network Interface` below.
*
*/
public List networkInterfaces() {
return this.networkInterfaces == null ? List.of() : this.networkInterfaces;
}
/**
* @return The DNS address of the VPC endpoint.
*
*/
public Optional vpcEndpointId() {
return Optional.ofNullable(this.vpcEndpointId);
}
/**
* @return The port that Amazon Redshift Serverless listens on.
*
*/
public Optional vpcId() {
return Optional.ofNullable(this.vpcId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EndpointAccessVpcEndpoint defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List networkInterfaces;
private @Nullable String vpcEndpointId;
private @Nullable String vpcId;
public Builder() {}
public Builder(EndpointAccessVpcEndpoint defaults) {
Objects.requireNonNull(defaults);
this.networkInterfaces = defaults.networkInterfaces;
this.vpcEndpointId = defaults.vpcEndpointId;
this.vpcId = defaults.vpcId;
}
@CustomType.Setter
public Builder networkInterfaces(@Nullable List networkInterfaces) {
this.networkInterfaces = networkInterfaces;
return this;
}
public Builder networkInterfaces(EndpointAccessVpcEndpointNetworkInterface... networkInterfaces) {
return networkInterfaces(List.of(networkInterfaces));
}
@CustomType.Setter
public Builder vpcEndpointId(@Nullable String vpcEndpointId) {
this.vpcEndpointId = vpcEndpointId;
return this;
}
@CustomType.Setter
public Builder vpcId(@Nullable String vpcId) {
this.vpcId = vpcId;
return this;
}
public EndpointAccessVpcEndpoint build() {
final var _resultValue = new EndpointAccessVpcEndpoint();
_resultValue.networkInterfaces = networkInterfaces;
_resultValue.vpcEndpointId = vpcEndpointId;
_resultValue.vpcId = vpcId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy