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

com.pulumi.azurenative.network.VpnGatewayArgs 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.BgpSettingsArgs;
import com.pulumi.azurenative.network.inputs.SubResourceArgs;
import com.pulumi.azurenative.network.inputs.VpnConnectionArgs;
import com.pulumi.azurenative.network.inputs.VpnGatewayNatRuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
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 VpnGatewayArgs extends com.pulumi.resources.ResourceArgs {

    public static final VpnGatewayArgs Empty = new VpnGatewayArgs();

    /**
     * Local network gateway's BGP speaker settings.
     * 
     */
    @Import(name="bgpSettings")
    private @Nullable Output bgpSettings;

    /**
     * @return Local network gateway's BGP speaker settings.
     * 
     */
    public Optional> bgpSettings() {
        return Optional.ofNullable(this.bgpSettings);
    }

    /**
     * List of all vpn connections to the gateway.
     * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
     * 
     */
    @Import(name="connections")
    private @Nullable Output> connections;

    /**
     * @return List of all vpn connections to the gateway.
     * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
     * 
     */
    public Optional>> connections() {
        return Optional.ofNullable(this.connections);
    }

    /**
     * Enable BGP routes translation for NAT on this VpnGateway.
     * 
     */
    @Import(name="enableBgpRouteTranslationForNat")
    private @Nullable Output enableBgpRouteTranslationForNat;

    /**
     * @return Enable BGP routes translation for NAT on this VpnGateway.
     * 
     */
    public Optional> enableBgpRouteTranslationForNat() {
        return Optional.ofNullable(this.enableBgpRouteTranslationForNat);
    }

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

    /**
     * @return The name of the gateway.
     * 
     */
    public Optional> gatewayName() {
        return Optional.ofNullable(this.gatewayName);
    }

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

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

    /**
     * Enable Routing Preference property for the Public IP Interface of the VpnGateway.
     * 
     */
    @Import(name="isRoutingPreferenceInternet")
    private @Nullable Output isRoutingPreferenceInternet;

    /**
     * @return Enable Routing Preference property for the Public IP Interface of the VpnGateway.
     * 
     */
    public Optional> isRoutingPreferenceInternet() {
        return Optional.ofNullable(this.isRoutingPreferenceInternet);
    }

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

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

    /**
     * List of all the nat Rules associated with the gateway.
     * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
     * 
     */
    @Import(name="natRules")
    private @Nullable Output> natRules;

    /**
     * @return List of all the nat Rules associated with the gateway.
     * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
     * 
     */
    public Optional>> natRules() {
        return Optional.ofNullable(this.natRules);
    }

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

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

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

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

    /**
     * The VirtualHub to which the gateway belongs.
     * 
     */
    @Import(name="virtualHub")
    private @Nullable Output virtualHub;

    /**
     * @return The VirtualHub to which the gateway belongs.
     * 
     */
    public Optional> virtualHub() {
        return Optional.ofNullable(this.virtualHub);
    }

    /**
     * The scale unit for this vpn gateway.
     * 
     */
    @Import(name="vpnGatewayScaleUnit")
    private @Nullable Output vpnGatewayScaleUnit;

    /**
     * @return The scale unit for this vpn gateway.
     * 
     */
    public Optional> vpnGatewayScaleUnit() {
        return Optional.ofNullable(this.vpnGatewayScaleUnit);
    }

    private VpnGatewayArgs() {}

    private VpnGatewayArgs(VpnGatewayArgs $) {
        this.bgpSettings = $.bgpSettings;
        this.connections = $.connections;
        this.enableBgpRouteTranslationForNat = $.enableBgpRouteTranslationForNat;
        this.gatewayName = $.gatewayName;
        this.id = $.id;
        this.isRoutingPreferenceInternet = $.isRoutingPreferenceInternet;
        this.location = $.location;
        this.natRules = $.natRules;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.virtualHub = $.virtualHub;
        this.vpnGatewayScaleUnit = $.vpnGatewayScaleUnit;
    }

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

    public static final class Builder {
        private VpnGatewayArgs $;

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

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

        /**
         * @param bgpSettings Local network gateway's BGP speaker settings.
         * 
         * @return builder
         * 
         */
        public Builder bgpSettings(@Nullable Output bgpSettings) {
            $.bgpSettings = bgpSettings;
            return this;
        }

        /**
         * @param bgpSettings Local network gateway's BGP speaker settings.
         * 
         * @return builder
         * 
         */
        public Builder bgpSettings(BgpSettingsArgs bgpSettings) {
            return bgpSettings(Output.of(bgpSettings));
        }

        /**
         * @param connections List of all vpn connections to the gateway.
         * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
         * 
         * @return builder
         * 
         */
        public Builder connections(@Nullable Output> connections) {
            $.connections = connections;
            return this;
        }

        /**
         * @param connections List of all vpn connections to the gateway.
         * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
         * 
         * @return builder
         * 
         */
        public Builder connections(List connections) {
            return connections(Output.of(connections));
        }

        /**
         * @param connections List of all vpn connections to the gateway.
         * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
         * 
         * @return builder
         * 
         */
        public Builder connections(VpnConnectionArgs... connections) {
            return connections(List.of(connections));
        }

        /**
         * @param enableBgpRouteTranslationForNat Enable BGP routes translation for NAT on this VpnGateway.
         * 
         * @return builder
         * 
         */
        public Builder enableBgpRouteTranslationForNat(@Nullable Output enableBgpRouteTranslationForNat) {
            $.enableBgpRouteTranslationForNat = enableBgpRouteTranslationForNat;
            return this;
        }

        /**
         * @param enableBgpRouteTranslationForNat Enable BGP routes translation for NAT on this VpnGateway.
         * 
         * @return builder
         * 
         */
        public Builder enableBgpRouteTranslationForNat(Boolean enableBgpRouteTranslationForNat) {
            return enableBgpRouteTranslationForNat(Output.of(enableBgpRouteTranslationForNat));
        }

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

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

        /**
         * @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 isRoutingPreferenceInternet Enable Routing Preference property for the Public IP Interface of the VpnGateway.
         * 
         * @return builder
         * 
         */
        public Builder isRoutingPreferenceInternet(@Nullable Output isRoutingPreferenceInternet) {
            $.isRoutingPreferenceInternet = isRoutingPreferenceInternet;
            return this;
        }

        /**
         * @param isRoutingPreferenceInternet Enable Routing Preference property for the Public IP Interface of the VpnGateway.
         * 
         * @return builder
         * 
         */
        public Builder isRoutingPreferenceInternet(Boolean isRoutingPreferenceInternet) {
            return isRoutingPreferenceInternet(Output.of(isRoutingPreferenceInternet));
        }

        /**
         * @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 natRules List of all the nat Rules associated with the gateway.
         * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
         * 
         * @return builder
         * 
         */
        public Builder natRules(@Nullable Output> natRules) {
            $.natRules = natRules;
            return this;
        }

        /**
         * @param natRules List of all the nat Rules associated with the gateway.
         * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
         * 
         * @return builder
         * 
         */
        public Builder natRules(List natRules) {
            return natRules(Output.of(natRules));
        }

        /**
         * @param natRules List of all the nat Rules associated with the gateway.
         * These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
         * 
         * @return builder
         * 
         */
        public Builder natRules(VpnGatewayNatRuleArgs... natRules) {
            return natRules(List.of(natRules));
        }

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

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

        /**
         * @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));
        }

        /**
         * @param virtualHub The VirtualHub to which the gateway belongs.
         * 
         * @return builder
         * 
         */
        public Builder virtualHub(@Nullable Output virtualHub) {
            $.virtualHub = virtualHub;
            return this;
        }

        /**
         * @param virtualHub The VirtualHub to which the gateway belongs.
         * 
         * @return builder
         * 
         */
        public Builder virtualHub(SubResourceArgs virtualHub) {
            return virtualHub(Output.of(virtualHub));
        }

        /**
         * @param vpnGatewayScaleUnit The scale unit for this vpn gateway.
         * 
         * @return builder
         * 
         */
        public Builder vpnGatewayScaleUnit(@Nullable Output vpnGatewayScaleUnit) {
            $.vpnGatewayScaleUnit = vpnGatewayScaleUnit;
            return this;
        }

        /**
         * @param vpnGatewayScaleUnit The scale unit for this vpn gateway.
         * 
         * @return builder
         * 
         */
        public Builder vpnGatewayScaleUnit(Integer vpnGatewayScaleUnit) {
            return vpnGatewayScaleUnit(Output.of(vpnGatewayScaleUnit));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy