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

com.pulumi.azurenative.network.PrivateEndpointArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.network;

import com.pulumi.azurenative.network.inputs.ApplicationSecurityGroupArgs;
import com.pulumi.azurenative.network.inputs.CustomDnsConfigPropertiesFormatArgs;
import com.pulumi.azurenative.network.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.network.inputs.PrivateEndpointIPConfigurationArgs;
import com.pulumi.azurenative.network.inputs.PrivateLinkServiceConnectionArgs;
import com.pulumi.azurenative.network.inputs.SubnetArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PrivateEndpointArgs Empty = new PrivateEndpointArgs();

    /**
     * Application security groups in which the private endpoint IP configuration is included.
     * 
     */
    @Import(name="applicationSecurityGroups")
    private @Nullable Output> applicationSecurityGroups;

    /**
     * @return Application security groups in which the private endpoint IP configuration is included.
     * 
     */
    public Optional>> applicationSecurityGroups() {
        return Optional.ofNullable(this.applicationSecurityGroups);
    }

    /**
     * An array of custom dns configurations.
     * 
     */
    @Import(name="customDnsConfigs")
    private @Nullable Output> customDnsConfigs;

    /**
     * @return An array of custom dns configurations.
     * 
     */
    public Optional>> customDnsConfigs() {
        return Optional.ofNullable(this.customDnsConfigs);
    }

    /**
     * The custom name of the network interface attached to the private endpoint.
     * 
     */
    @Import(name="customNetworkInterfaceName")
    private @Nullable Output customNetworkInterfaceName;

    /**
     * @return The custom name of the network interface attached to the private endpoint.
     * 
     */
    public Optional> customNetworkInterfaceName() {
        return Optional.ofNullable(this.customNetworkInterfaceName);
    }

    /**
     * The extended location of the load balancer.
     * 
     */
    @Import(name="extendedLocation")
    private @Nullable Output extendedLocation;

    /**
     * @return The extended location of the load balancer.
     * 
     */
    public Optional> extendedLocation() {
        return Optional.ofNullable(this.extendedLocation);
    }

    /**
     * Resource ID.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return Resource ID.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * A list of IP configurations of the private endpoint. This will be used to map to the First Party Service's endpoints.
     * 
     */
    @Import(name="ipConfigurations")
    private @Nullable Output> ipConfigurations;

    /**
     * @return A list of IP configurations of the private endpoint. This will be used to map to the First Party Service's endpoints.
     * 
     */
    public Optional>> ipConfigurations() {
        return Optional.ofNullable(this.ipConfigurations);
    }

    /**
     * Resource location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Resource location.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * A grouping of information about the connection to the remote resource. Used when the network admin does not have access to approve connections to the remote resource.
     * 
     */
    @Import(name="manualPrivateLinkServiceConnections")
    private @Nullable Output> manualPrivateLinkServiceConnections;

    /**
     * @return A grouping of information about the connection to the remote resource. Used when the network admin does not have access to approve connections to the remote resource.
     * 
     */
    public Optional>> manualPrivateLinkServiceConnections() {
        return Optional.ofNullable(this.manualPrivateLinkServiceConnections);
    }

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

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

    /**
     * A grouping of information about the connection to the remote resource.
     * 
     */
    @Import(name="privateLinkServiceConnections")
    private @Nullable Output> privateLinkServiceConnections;

    /**
     * @return A grouping of information about the connection to the remote resource.
     * 
     */
    public Optional>> privateLinkServiceConnections() {
        return Optional.ofNullable(this.privateLinkServiceConnections);
    }

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

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

    /**
     * The ID of the subnet from which the private IP will be allocated.
     * 
     */
    @Import(name="subnet")
    private @Nullable Output subnet;

    /**
     * @return The ID of the subnet from which the private IP will be allocated.
     * 
     */
    public Optional> subnet() {
        return Optional.ofNullable(this.subnet);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private PrivateEndpointArgs() {}

    private PrivateEndpointArgs(PrivateEndpointArgs $) {
        this.applicationSecurityGroups = $.applicationSecurityGroups;
        this.customDnsConfigs = $.customDnsConfigs;
        this.customNetworkInterfaceName = $.customNetworkInterfaceName;
        this.extendedLocation = $.extendedLocation;
        this.id = $.id;
        this.ipConfigurations = $.ipConfigurations;
        this.location = $.location;
        this.manualPrivateLinkServiceConnections = $.manualPrivateLinkServiceConnections;
        this.privateEndpointName = $.privateEndpointName;
        this.privateLinkServiceConnections = $.privateLinkServiceConnections;
        this.resourceGroupName = $.resourceGroupName;
        this.subnet = $.subnet;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private PrivateEndpointArgs $;

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

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

        /**
         * @param applicationSecurityGroups Application security groups in which the private endpoint IP configuration is included.
         * 
         * @return builder
         * 
         */
        public Builder applicationSecurityGroups(@Nullable Output> applicationSecurityGroups) {
            $.applicationSecurityGroups = applicationSecurityGroups;
            return this;
        }

        /**
         * @param applicationSecurityGroups Application security groups in which the private endpoint IP configuration is included.
         * 
         * @return builder
         * 
         */
        public Builder applicationSecurityGroups(List applicationSecurityGroups) {
            return applicationSecurityGroups(Output.of(applicationSecurityGroups));
        }

        /**
         * @param applicationSecurityGroups Application security groups in which the private endpoint IP configuration is included.
         * 
         * @return builder
         * 
         */
        public Builder applicationSecurityGroups(ApplicationSecurityGroupArgs... applicationSecurityGroups) {
            return applicationSecurityGroups(List.of(applicationSecurityGroups));
        }

        /**
         * @param customDnsConfigs An array of custom dns configurations.
         * 
         * @return builder
         * 
         */
        public Builder customDnsConfigs(@Nullable Output> customDnsConfigs) {
            $.customDnsConfigs = customDnsConfigs;
            return this;
        }

        /**
         * @param customDnsConfigs An array of custom dns configurations.
         * 
         * @return builder
         * 
         */
        public Builder customDnsConfigs(List customDnsConfigs) {
            return customDnsConfigs(Output.of(customDnsConfigs));
        }

        /**
         * @param customDnsConfigs An array of custom dns configurations.
         * 
         * @return builder
         * 
         */
        public Builder customDnsConfigs(CustomDnsConfigPropertiesFormatArgs... customDnsConfigs) {
            return customDnsConfigs(List.of(customDnsConfigs));
        }

        /**
         * @param customNetworkInterfaceName The custom name of the network interface attached to the private endpoint.
         * 
         * @return builder
         * 
         */
        public Builder customNetworkInterfaceName(@Nullable Output customNetworkInterfaceName) {
            $.customNetworkInterfaceName = customNetworkInterfaceName;
            return this;
        }

        /**
         * @param customNetworkInterfaceName The custom name of the network interface attached to the private endpoint.
         * 
         * @return builder
         * 
         */
        public Builder customNetworkInterfaceName(String customNetworkInterfaceName) {
            return customNetworkInterfaceName(Output.of(customNetworkInterfaceName));
        }

        /**
         * @param extendedLocation The extended location of the load balancer.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(@Nullable Output extendedLocation) {
            $.extendedLocation = extendedLocation;
            return this;
        }

        /**
         * @param extendedLocation The extended location of the load balancer.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(ExtendedLocationArgs extendedLocation) {
            return extendedLocation(Output.of(extendedLocation));
        }

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param ipConfigurations A list of IP configurations of the private endpoint. This will be used to map to the First Party Service's endpoints.
         * 
         * @return builder
         * 
         */
        public Builder ipConfigurations(@Nullable Output> ipConfigurations) {
            $.ipConfigurations = ipConfigurations;
            return this;
        }

        /**
         * @param ipConfigurations A list of IP configurations of the private endpoint. This will be used to map to the First Party Service's endpoints.
         * 
         * @return builder
         * 
         */
        public Builder ipConfigurations(List ipConfigurations) {
            return ipConfigurations(Output.of(ipConfigurations));
        }

        /**
         * @param ipConfigurations A list of IP configurations of the private endpoint. This will be used to map to the First Party Service's endpoints.
         * 
         * @return builder
         * 
         */
        public Builder ipConfigurations(PrivateEndpointIPConfigurationArgs... ipConfigurations) {
            return ipConfigurations(List.of(ipConfigurations));
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param manualPrivateLinkServiceConnections A grouping of information about the connection to the remote resource. Used when the network admin does not have access to approve connections to the remote resource.
         * 
         * @return builder
         * 
         */
        public Builder manualPrivateLinkServiceConnections(@Nullable Output> manualPrivateLinkServiceConnections) {
            $.manualPrivateLinkServiceConnections = manualPrivateLinkServiceConnections;
            return this;
        }

        /**
         * @param manualPrivateLinkServiceConnections A grouping of information about the connection to the remote resource. Used when the network admin does not have access to approve connections to the remote resource.
         * 
         * @return builder
         * 
         */
        public Builder manualPrivateLinkServiceConnections(List manualPrivateLinkServiceConnections) {
            return manualPrivateLinkServiceConnections(Output.of(manualPrivateLinkServiceConnections));
        }

        /**
         * @param manualPrivateLinkServiceConnections A grouping of information about the connection to the remote resource. Used when the network admin does not have access to approve connections to the remote resource.
         * 
         * @return builder
         * 
         */
        public Builder manualPrivateLinkServiceConnections(PrivateLinkServiceConnectionArgs... manualPrivateLinkServiceConnections) {
            return manualPrivateLinkServiceConnections(List.of(manualPrivateLinkServiceConnections));
        }

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

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

        /**
         * @param privateLinkServiceConnections A grouping of information about the connection to the remote resource.
         * 
         * @return builder
         * 
         */
        public Builder privateLinkServiceConnections(@Nullable Output> privateLinkServiceConnections) {
            $.privateLinkServiceConnections = privateLinkServiceConnections;
            return this;
        }

        /**
         * @param privateLinkServiceConnections A grouping of information about the connection to the remote resource.
         * 
         * @return builder
         * 
         */
        public Builder privateLinkServiceConnections(List privateLinkServiceConnections) {
            return privateLinkServiceConnections(Output.of(privateLinkServiceConnections));
        }

        /**
         * @param privateLinkServiceConnections A grouping of information about the connection to the remote resource.
         * 
         * @return builder
         * 
         */
        public Builder privateLinkServiceConnections(PrivateLinkServiceConnectionArgs... privateLinkServiceConnections) {
            return privateLinkServiceConnections(List.of(privateLinkServiceConnections));
        }

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

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

        /**
         * @param subnet The ID of the subnet from which the private IP will be allocated.
         * 
         * @return builder
         * 
         */
        public Builder subnet(@Nullable Output subnet) {
            $.subnet = subnet;
            return this;
        }

        /**
         * @param subnet The ID of the subnet from which the private IP will be allocated.
         * 
         * @return builder
         * 
         */
        public Builder subnet(SubnetArgs subnet) {
            return subnet(Output.of(subnet));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy