All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.redshiftserverless.outputs.GetWorkgroupEndpoint 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.GetWorkgroupEndpointVpcEndpoint;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetWorkgroupEndpoint {
    /**
     * @return The DNS address of the VPC endpoint.
     * 
     */
    private String address;
    /**
     * @return The port that Amazon Redshift Serverless listens on.
     * 
     */
    private Integer port;
    /**
     * @return The VPC endpoint or the Redshift Serverless workgroup. See `VPC Endpoint` below.
     * 
     */
    private List vpcEndpoints;

    private GetWorkgroupEndpoint() {}
    /**
     * @return The DNS address of the VPC endpoint.
     * 
     */
    public String address() {
        return this.address;
    }
    /**
     * @return The port that Amazon Redshift Serverless listens on.
     * 
     */
    public Integer port() {
        return this.port;
    }
    /**
     * @return The VPC endpoint or the Redshift Serverless workgroup. See `VPC Endpoint` below.
     * 
     */
    public List vpcEndpoints() {
        return this.vpcEndpoints;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GetWorkgroupEndpoint defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String address;
        private Integer port;
        private List vpcEndpoints;
        public Builder() {}
        public Builder(GetWorkgroupEndpoint defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.address = defaults.address;
    	      this.port = defaults.port;
    	      this.vpcEndpoints = defaults.vpcEndpoints;
        }

        @CustomType.Setter
        public Builder address(String address) {
            if (address == null) {
              throw new MissingRequiredPropertyException("GetWorkgroupEndpoint", "address");
            }
            this.address = address;
            return this;
        }
        @CustomType.Setter
        public Builder port(Integer port) {
            if (port == null) {
              throw new MissingRequiredPropertyException("GetWorkgroupEndpoint", "port");
            }
            this.port = port;
            return this;
        }
        @CustomType.Setter
        public Builder vpcEndpoints(List vpcEndpoints) {
            if (vpcEndpoints == null) {
              throw new MissingRequiredPropertyException("GetWorkgroupEndpoint", "vpcEndpoints");
            }
            this.vpcEndpoints = vpcEndpoints;
            return this;
        }
        public Builder vpcEndpoints(GetWorkgroupEndpointVpcEndpoint... vpcEndpoints) {
            return vpcEndpoints(List.of(vpcEndpoints));
        }
        public GetWorkgroupEndpoint build() {
            final var _resultValue = new GetWorkgroupEndpoint();
            _resultValue.address = address;
            _resultValue.port = port;
            _resultValue.vpcEndpoints = vpcEndpoints;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy