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

com.pulumi.azurenative.network.InterfaceEndpointArgs 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.EndpointServiceArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final InterfaceEndpointArgs Empty = new InterfaceEndpointArgs();

    /**
     * A reference to the service being brought into the virtual network.
     * 
     */
    @Import(name="endpointService")
    private @Nullable Output endpointService;

    /**
     * @return A reference to the service being brought into the virtual network.
     * 
     */
    public Optional> endpointService() {
        return Optional.ofNullable(this.endpointService);
    }

    /**
     * A first-party service's FQDN that is mapped to the private IP allocated via this interface endpoint.
     * 
     */
    @Import(name="fqdn")
    private @Nullable Output fqdn;

    /**
     * @return A first-party service's FQDN that is mapped to the private IP allocated via this interface endpoint.
     * 
     */
    public Optional> fqdn() {
        return Optional.ofNullable(this.fqdn);
    }

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

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

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

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

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

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

    /**
     * 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 InterfaceEndpointArgs() {}

    private InterfaceEndpointArgs(InterfaceEndpointArgs $) {
        this.endpointService = $.endpointService;
        this.fqdn = $.fqdn;
        this.id = $.id;
        this.interfaceEndpointName = $.interfaceEndpointName;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.subnet = $.subnet;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private InterfaceEndpointArgs $;

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

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

        /**
         * @param endpointService A reference to the service being brought into the virtual network.
         * 
         * @return builder
         * 
         */
        public Builder endpointService(@Nullable Output endpointService) {
            $.endpointService = endpointService;
            return this;
        }

        /**
         * @param endpointService A reference to the service being brought into the virtual network.
         * 
         * @return builder
         * 
         */
        public Builder endpointService(EndpointServiceArgs endpointService) {
            return endpointService(Output.of(endpointService));
        }

        /**
         * @param fqdn A first-party service's FQDN that is mapped to the private IP allocated via this interface endpoint.
         * 
         * @return builder
         * 
         */
        public Builder fqdn(@Nullable Output fqdn) {
            $.fqdn = fqdn;
            return this;
        }

        /**
         * @param fqdn A first-party service's FQDN that is mapped to the private IP allocated via this interface endpoint.
         * 
         * @return builder
         * 
         */
        public Builder fqdn(String fqdn) {
            return fqdn(Output.of(fqdn));
        }

        /**
         * @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 interfaceEndpointName The name of the interface endpoint.
         * 
         * @return builder
         * 
         */
        public Builder interfaceEndpointName(@Nullable Output interfaceEndpointName) {
            $.interfaceEndpointName = interfaceEndpointName;
            return this;
        }

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

        /**
         * @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 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 InterfaceEndpointArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("InterfaceEndpointArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy