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

com.pulumi.azurenative.dbforpostgresql.VirtualEndpointArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show 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.azurenative.dbforpostgresql;

import com.pulumi.azurenative.dbforpostgresql.enums.VirtualEndpointType;
import com.pulumi.core.Either;
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 VirtualEndpointArgs extends com.pulumi.resources.ResourceArgs {

    public static final VirtualEndpointArgs Empty = new VirtualEndpointArgs();

    /**
     * The endpoint type for the virtual endpoint.
     * 
     */
    @Import(name="endpointType")
    private @Nullable Output> endpointType;

    /**
     * @return The endpoint type for the virtual endpoint.
     * 
     */
    public Optional>> endpointType() {
        return Optional.ofNullable(this.endpointType);
    }

    /**
     * List of members for a virtual endpoint
     * 
     */
    @Import(name="members")
    private @Nullable Output> members;

    /**
     * @return List of members for a virtual endpoint
     * 
     */
    public Optional>> members() {
        return Optional.ofNullable(this.members);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

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

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

    /**
     * The name of the virtual endpoint.
     * 
     */
    @Import(name="virtualEndpointName")
    private @Nullable Output virtualEndpointName;

    /**
     * @return The name of the virtual endpoint.
     * 
     */
    public Optional> virtualEndpointName() {
        return Optional.ofNullable(this.virtualEndpointName);
    }

    private VirtualEndpointArgs() {}

    private VirtualEndpointArgs(VirtualEndpointArgs $) {
        this.endpointType = $.endpointType;
        this.members = $.members;
        this.resourceGroupName = $.resourceGroupName;
        this.serverName = $.serverName;
        this.virtualEndpointName = $.virtualEndpointName;
    }

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

    public static final class Builder {
        private VirtualEndpointArgs $;

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

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

        /**
         * @param endpointType The endpoint type for the virtual endpoint.
         * 
         * @return builder
         * 
         */
        public Builder endpointType(@Nullable Output> endpointType) {
            $.endpointType = endpointType;
            return this;
        }

        /**
         * @param endpointType The endpoint type for the virtual endpoint.
         * 
         * @return builder
         * 
         */
        public Builder endpointType(Either endpointType) {
            return endpointType(Output.of(endpointType));
        }

        /**
         * @param endpointType The endpoint type for the virtual endpoint.
         * 
         * @return builder
         * 
         */
        public Builder endpointType(String endpointType) {
            return endpointType(Either.ofLeft(endpointType));
        }

        /**
         * @param endpointType The endpoint type for the virtual endpoint.
         * 
         * @return builder
         * 
         */
        public Builder endpointType(VirtualEndpointType endpointType) {
            return endpointType(Either.ofRight(endpointType));
        }

        /**
         * @param members List of members for a virtual endpoint
         * 
         * @return builder
         * 
         */
        public Builder members(@Nullable Output> members) {
            $.members = members;
            return this;
        }

        /**
         * @param members List of members for a virtual endpoint
         * 
         * @return builder
         * 
         */
        public Builder members(List members) {
            return members(Output.of(members));
        }

        /**
         * @param members List of members for a virtual endpoint
         * 
         * @return builder
         * 
         */
        public Builder members(String... members) {
            return members(List.of(members));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

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

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

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

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

        public VirtualEndpointArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("VirtualEndpointArgs", "resourceGroupName");
            }
            if ($.serverName == null) {
                throw new MissingRequiredPropertyException("VirtualEndpointArgs", "serverName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy