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

com.pulumi.azure.network.VpnSiteArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.network;

import com.pulumi.azure.network.inputs.VpnSiteLinkArgs;
import com.pulumi.azure.network.inputs.VpnSiteO365PolicyArgs;
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 VpnSiteArgs extends com.pulumi.resources.ResourceArgs {

    public static final VpnSiteArgs Empty = new VpnSiteArgs();

    /**
     * Specifies a list of IP address CIDRs that are located on your on-premises site. Traffic destined for these address spaces is routed to your local site.
     * 
     * > **NOTE:** The `address_cidrs` has to be set when the `link.bgp` isn't specified.
     * 
     */
    @Import(name="addressCidrs")
    private @Nullable Output> addressCidrs;

    /**
     * @return Specifies a list of IP address CIDRs that are located on your on-premises site. Traffic destined for these address spaces is routed to your local site.
     * 
     * > **NOTE:** The `address_cidrs` has to be set when the `link.bgp` isn't specified.
     * 
     */
    public Optional>> addressCidrs() {
        return Optional.ofNullable(this.addressCidrs);
    }

    /**
     * The model of the VPN device.
     * 
     */
    @Import(name="deviceModel")
    private @Nullable Output deviceModel;

    /**
     * @return The model of the VPN device.
     * 
     */
    public Optional> deviceModel() {
        return Optional.ofNullable(this.deviceModel);
    }

    /**
     * The name of the VPN device vendor.
     * 
     */
    @Import(name="deviceVendor")
    private @Nullable Output deviceVendor;

    /**
     * @return The name of the VPN device vendor.
     * 
     */
    public Optional> deviceVendor() {
        return Optional.ofNullable(this.deviceVendor);
    }

    /**
     * One or more `link` blocks as defined below.
     * 
     */
    @Import(name="links")
    private @Nullable Output> links;

    /**
     * @return One or more `link` blocks as defined below.
     * 
     */
    public Optional>> links() {
        return Optional.ofNullable(this.links);
    }

    /**
     * The Azure Region where the VPN Site should exist. Changing this forces a new VPN Site to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The Azure Region where the VPN Site should exist. Changing this forces a new VPN Site to be created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The name which should be used for this VPN Site. Changing this forces a new VPN Site to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this VPN Site. Changing this forces a new VPN Site to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * An `o365_policy` block as defined below.
     * 
     */
    @Import(name="o365Policy")
    private @Nullable Output o365Policy;

    /**
     * @return An `o365_policy` block as defined below.
     * 
     */
    public Optional> o365Policy() {
        return Optional.ofNullable(this.o365Policy);
    }

    /**
     * The name of the Resource Group where the VPN Site should exist. Changing this forces a new VPN Site to be created.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the Resource Group where the VPN Site should exist. Changing this forces a new VPN Site to be created.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * A mapping of tags which should be assigned to the VPN Site.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags which should be assigned to the VPN Site.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The ID of the Virtual Wan where this VPN site resides in. Changing this forces a new VPN Site to be created.
     * 
     */
    @Import(name="virtualWanId", required=true)
    private Output virtualWanId;

    /**
     * @return The ID of the Virtual Wan where this VPN site resides in. Changing this forces a new VPN Site to be created.
     * 
     */
    public Output virtualWanId() {
        return this.virtualWanId;
    }

    private VpnSiteArgs() {}

    private VpnSiteArgs(VpnSiteArgs $) {
        this.addressCidrs = $.addressCidrs;
        this.deviceModel = $.deviceModel;
        this.deviceVendor = $.deviceVendor;
        this.links = $.links;
        this.location = $.location;
        this.name = $.name;
        this.o365Policy = $.o365Policy;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.virtualWanId = $.virtualWanId;
    }

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

    public static final class Builder {
        private VpnSiteArgs $;

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

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

        /**
         * @param addressCidrs Specifies a list of IP address CIDRs that are located on your on-premises site. Traffic destined for these address spaces is routed to your local site.
         * 
         * > **NOTE:** The `address_cidrs` has to be set when the `link.bgp` isn't specified.
         * 
         * @return builder
         * 
         */
        public Builder addressCidrs(@Nullable Output> addressCidrs) {
            $.addressCidrs = addressCidrs;
            return this;
        }

        /**
         * @param addressCidrs Specifies a list of IP address CIDRs that are located on your on-premises site. Traffic destined for these address spaces is routed to your local site.
         * 
         * > **NOTE:** The `address_cidrs` has to be set when the `link.bgp` isn't specified.
         * 
         * @return builder
         * 
         */
        public Builder addressCidrs(List addressCidrs) {
            return addressCidrs(Output.of(addressCidrs));
        }

        /**
         * @param addressCidrs Specifies a list of IP address CIDRs that are located on your on-premises site. Traffic destined for these address spaces is routed to your local site.
         * 
         * > **NOTE:** The `address_cidrs` has to be set when the `link.bgp` isn't specified.
         * 
         * @return builder
         * 
         */
        public Builder addressCidrs(String... addressCidrs) {
            return addressCidrs(List.of(addressCidrs));
        }

        /**
         * @param deviceModel The model of the VPN device.
         * 
         * @return builder
         * 
         */
        public Builder deviceModel(@Nullable Output deviceModel) {
            $.deviceModel = deviceModel;
            return this;
        }

        /**
         * @param deviceModel The model of the VPN device.
         * 
         * @return builder
         * 
         */
        public Builder deviceModel(String deviceModel) {
            return deviceModel(Output.of(deviceModel));
        }

        /**
         * @param deviceVendor The name of the VPN device vendor.
         * 
         * @return builder
         * 
         */
        public Builder deviceVendor(@Nullable Output deviceVendor) {
            $.deviceVendor = deviceVendor;
            return this;
        }

        /**
         * @param deviceVendor The name of the VPN device vendor.
         * 
         * @return builder
         * 
         */
        public Builder deviceVendor(String deviceVendor) {
            return deviceVendor(Output.of(deviceVendor));
        }

        /**
         * @param links One or more `link` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder links(@Nullable Output> links) {
            $.links = links;
            return this;
        }

        /**
         * @param links One or more `link` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder links(List links) {
            return links(Output.of(links));
        }

        /**
         * @param links One or more `link` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder links(VpnSiteLinkArgs... links) {
            return links(List.of(links));
        }

        /**
         * @param location The Azure Region where the VPN Site should exist. Changing this forces a new VPN Site to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The Azure Region where the VPN Site should exist. Changing this forces a new VPN Site to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name The name which should be used for this VPN Site. Changing this forces a new VPN Site to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this VPN Site. Changing this forces a new VPN Site to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param o365Policy An `o365_policy` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder o365Policy(@Nullable Output o365Policy) {
            $.o365Policy = o365Policy;
            return this;
        }

        /**
         * @param o365Policy An `o365_policy` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder o365Policy(VpnSiteO365PolicyArgs o365Policy) {
            return o365Policy(Output.of(o365Policy));
        }

        /**
         * @param resourceGroupName The name of the Resource Group where the VPN Site should exist. Changing this forces a new VPN Site to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the Resource Group where the VPN Site should exist. Changing this forces a new VPN Site to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags A mapping of tags which should be assigned to the VPN Site.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags which should be assigned to the VPN Site.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param virtualWanId The ID of the Virtual Wan where this VPN site resides in. Changing this forces a new VPN Site to be created.
         * 
         * @return builder
         * 
         */
        public Builder virtualWanId(Output virtualWanId) {
            $.virtualWanId = virtualWanId;
            return this;
        }

        /**
         * @param virtualWanId The ID of the Virtual Wan where this VPN site resides in. Changing this forces a new VPN Site to be created.
         * 
         * @return builder
         * 
         */
        public Builder virtualWanId(String virtualWanId) {
            return virtualWanId(Output.of(virtualWanId));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy