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

com.pulumi.aws.redshiftserverless.EndpointAccessArgs 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;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class EndpointAccessArgs extends com.pulumi.resources.ResourceArgs {

    public static final EndpointAccessArgs Empty = new EndpointAccessArgs();

    /**
     * The name of the endpoint.
     * 
     */
    @Import(name="endpointName", required=true)
    private Output endpointName;

    /**
     * @return The name of the endpoint.
     * 
     */
    public Output endpointName() {
        return this.endpointName;
    }

    /**
     * The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
     * 
     */
    @Import(name="ownerAccount")
    private @Nullable Output ownerAccount;

    /**
     * @return The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
     * 
     */
    public Optional> ownerAccount() {
        return Optional.ofNullable(this.ownerAccount);
    }

    /**
     * An array of VPC subnet IDs to associate with the endpoint.
     * 
     */
    @Import(name="subnetIds", required=true)
    private Output> subnetIds;

    /**
     * @return An array of VPC subnet IDs to associate with the endpoint.
     * 
     */
    public Output> subnetIds() {
        return this.subnetIds;
    }

    /**
     * An array of security group IDs to associate with the workgroup.
     * 
     */
    @Import(name="vpcSecurityGroupIds")
    private @Nullable Output> vpcSecurityGroupIds;

    /**
     * @return An array of security group IDs to associate with the workgroup.
     * 
     */
    public Optional>> vpcSecurityGroupIds() {
        return Optional.ofNullable(this.vpcSecurityGroupIds);
    }

    /**
     * The name of the workgroup.
     * 
     */
    @Import(name="workgroupName", required=true)
    private Output workgroupName;

    /**
     * @return The name of the workgroup.
     * 
     */
    public Output workgroupName() {
        return this.workgroupName;
    }

    private EndpointAccessArgs() {}

    private EndpointAccessArgs(EndpointAccessArgs $) {
        this.endpointName = $.endpointName;
        this.ownerAccount = $.ownerAccount;
        this.subnetIds = $.subnetIds;
        this.vpcSecurityGroupIds = $.vpcSecurityGroupIds;
        this.workgroupName = $.workgroupName;
    }

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

    public static final class Builder {
        private EndpointAccessArgs $;

        public Builder() {
            $ = new EndpointAccessArgs();
        }

        public Builder(EndpointAccessArgs defaults) {
            $ = new EndpointAccessArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param endpointName The name of the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder endpointName(Output endpointName) {
            $.endpointName = endpointName;
            return this;
        }

        /**
         * @param endpointName The name of the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder endpointName(String endpointName) {
            return endpointName(Output.of(endpointName));
        }

        /**
         * @param ownerAccount The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
         * 
         * @return builder
         * 
         */
        public Builder ownerAccount(@Nullable Output ownerAccount) {
            $.ownerAccount = ownerAccount;
            return this;
        }

        /**
         * @param ownerAccount The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
         * 
         * @return builder
         * 
         */
        public Builder ownerAccount(String ownerAccount) {
            return ownerAccount(Output.of(ownerAccount));
        }

        /**
         * @param subnetIds An array of VPC subnet IDs to associate with the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(Output> subnetIds) {
            $.subnetIds = subnetIds;
            return this;
        }

        /**
         * @param subnetIds An array of VPC subnet IDs to associate with the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(List subnetIds) {
            return subnetIds(Output.of(subnetIds));
        }

        /**
         * @param subnetIds An array of VPC subnet IDs to associate with the endpoint.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(String... subnetIds) {
            return subnetIds(List.of(subnetIds));
        }

        /**
         * @param vpcSecurityGroupIds An array of security group IDs to associate with the workgroup.
         * 
         * @return builder
         * 
         */
        public Builder vpcSecurityGroupIds(@Nullable Output> vpcSecurityGroupIds) {
            $.vpcSecurityGroupIds = vpcSecurityGroupIds;
            return this;
        }

        /**
         * @param vpcSecurityGroupIds An array of security group IDs to associate with the workgroup.
         * 
         * @return builder
         * 
         */
        public Builder vpcSecurityGroupIds(List vpcSecurityGroupIds) {
            return vpcSecurityGroupIds(Output.of(vpcSecurityGroupIds));
        }

        /**
         * @param vpcSecurityGroupIds An array of security group IDs to associate with the workgroup.
         * 
         * @return builder
         * 
         */
        public Builder vpcSecurityGroupIds(String... vpcSecurityGroupIds) {
            return vpcSecurityGroupIds(List.of(vpcSecurityGroupIds));
        }

        /**
         * @param workgroupName The name of the workgroup.
         * 
         * @return builder
         * 
         */
        public Builder workgroupName(Output workgroupName) {
            $.workgroupName = workgroupName;
            return this;
        }

        /**
         * @param workgroupName The name of the workgroup.
         * 
         * @return builder
         * 
         */
        public Builder workgroupName(String workgroupName) {
            return workgroupName(Output.of(workgroupName));
        }

        public EndpointAccessArgs build() {
            if ($.endpointName == null) {
                throw new MissingRequiredPropertyException("EndpointAccessArgs", "endpointName");
            }
            if ($.subnetIds == null) {
                throw new MissingRequiredPropertyException("EndpointAccessArgs", "subnetIds");
            }
            if ($.workgroupName == null) {
                throw new MissingRequiredPropertyException("EndpointAccessArgs", "workgroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy