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

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

There is a newer version: 2.82.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.AddressSpaceArgs;
import com.pulumi.azurenative.network.inputs.BgpSettingsArgs;
import com.pulumi.azurenative.network.inputs.DevicePropertiesArgs;
import com.pulumi.azurenative.network.inputs.O365PolicyPropertiesArgs;
import com.pulumi.azurenative.network.inputs.SubResourceArgs;
import com.pulumi.azurenative.network.inputs.VpnSiteLinkArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
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();

    /**
     * The AddressSpace that contains an array of IP address ranges.
     * 
     */
    @Import(name="addressSpace")
    private @Nullable Output addressSpace;

    /**
     * @return The AddressSpace that contains an array of IP address ranges.
     * 
     */
    public Optional> addressSpace() {
        return Optional.ofNullable(this.addressSpace);
    }

    /**
     * The set of bgp properties.
     * 
     */
    @Import(name="bgpProperties")
    private @Nullable Output bgpProperties;

    /**
     * @return The set of bgp properties.
     * 
     */
    public Optional> bgpProperties() {
        return Optional.ofNullable(this.bgpProperties);
    }

    /**
     * The device properties.
     * 
     */
    @Import(name="deviceProperties")
    private @Nullable Output deviceProperties;

    /**
     * @return The device properties.
     * 
     */
    public Optional> deviceProperties() {
        return Optional.ofNullable(this.deviceProperties);
    }

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

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

    /**
     * The ip-address for the vpn-site.
     * 
     */
    @Import(name="ipAddress")
    private @Nullable Output ipAddress;

    /**
     * @return The ip-address for the vpn-site.
     * 
     */
    public Optional> ipAddress() {
        return Optional.ofNullable(this.ipAddress);
    }

    /**
     * IsSecuritySite flag.
     * 
     */
    @Import(name="isSecuritySite")
    private @Nullable Output isSecuritySite;

    /**
     * @return IsSecuritySite flag.
     * 
     */
    public Optional> isSecuritySite() {
        return Optional.ofNullable(this.isSecuritySite);
    }

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

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

    /**
     * Office365 Policy.
     * 
     */
    @Import(name="o365Policy")
    private @Nullable Output o365Policy;

    /**
     * @return Office365 Policy.
     * 
     */
    public Optional> o365Policy() {
        return Optional.ofNullable(this.o365Policy);
    }

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

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

    /**
     * The key for vpn-site that can be used for connections.
     * 
     */
    @Import(name="siteKey")
    private @Nullable Output siteKey;

    /**
     * @return The key for vpn-site that can be used for connections.
     * 
     */
    public Optional> siteKey() {
        return Optional.ofNullable(this.siteKey);
    }

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

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

    /**
     * The VirtualWAN to which the vpnSite belongs.
     * 
     */
    @Import(name="virtualWan")
    private @Nullable Output virtualWan;

    /**
     * @return The VirtualWAN to which the vpnSite belongs.
     * 
     */
    public Optional> virtualWan() {
        return Optional.ofNullable(this.virtualWan);
    }

    /**
     * List of all vpn site links.
     * 
     */
    @Import(name="vpnSiteLinks")
    private @Nullable Output> vpnSiteLinks;

    /**
     * @return List of all vpn site links.
     * 
     */
    public Optional>> vpnSiteLinks() {
        return Optional.ofNullable(this.vpnSiteLinks);
    }

    /**
     * The name of the VpnSite being created or updated.
     * 
     */
    @Import(name="vpnSiteName")
    private @Nullable Output vpnSiteName;

    /**
     * @return The name of the VpnSite being created or updated.
     * 
     */
    public Optional> vpnSiteName() {
        return Optional.ofNullable(this.vpnSiteName);
    }

    private VpnSiteArgs() {}

    private VpnSiteArgs(VpnSiteArgs $) {
        this.addressSpace = $.addressSpace;
        this.bgpProperties = $.bgpProperties;
        this.deviceProperties = $.deviceProperties;
        this.id = $.id;
        this.ipAddress = $.ipAddress;
        this.isSecuritySite = $.isSecuritySite;
        this.location = $.location;
        this.o365Policy = $.o365Policy;
        this.resourceGroupName = $.resourceGroupName;
        this.siteKey = $.siteKey;
        this.tags = $.tags;
        this.virtualWan = $.virtualWan;
        this.vpnSiteLinks = $.vpnSiteLinks;
        this.vpnSiteName = $.vpnSiteName;
    }

    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 addressSpace The AddressSpace that contains an array of IP address ranges.
         * 
         * @return builder
         * 
         */
        public Builder addressSpace(@Nullable Output addressSpace) {
            $.addressSpace = addressSpace;
            return this;
        }

        /**
         * @param addressSpace The AddressSpace that contains an array of IP address ranges.
         * 
         * @return builder
         * 
         */
        public Builder addressSpace(AddressSpaceArgs addressSpace) {
            return addressSpace(Output.of(addressSpace));
        }

        /**
         * @param bgpProperties The set of bgp properties.
         * 
         * @return builder
         * 
         */
        public Builder bgpProperties(@Nullable Output bgpProperties) {
            $.bgpProperties = bgpProperties;
            return this;
        }

        /**
         * @param bgpProperties The set of bgp properties.
         * 
         * @return builder
         * 
         */
        public Builder bgpProperties(BgpSettingsArgs bgpProperties) {
            return bgpProperties(Output.of(bgpProperties));
        }

        /**
         * @param deviceProperties The device properties.
         * 
         * @return builder
         * 
         */
        public Builder deviceProperties(@Nullable Output deviceProperties) {
            $.deviceProperties = deviceProperties;
            return this;
        }

        /**
         * @param deviceProperties The device properties.
         * 
         * @return builder
         * 
         */
        public Builder deviceProperties(DevicePropertiesArgs deviceProperties) {
            return deviceProperties(Output.of(deviceProperties));
        }

        /**
         * @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 ipAddress The ip-address for the vpn-site.
         * 
         * @return builder
         * 
         */
        public Builder ipAddress(@Nullable Output ipAddress) {
            $.ipAddress = ipAddress;
            return this;
        }

        /**
         * @param ipAddress The ip-address for the vpn-site.
         * 
         * @return builder
         * 
         */
        public Builder ipAddress(String ipAddress) {
            return ipAddress(Output.of(ipAddress));
        }

        /**
         * @param isSecuritySite IsSecuritySite flag.
         * 
         * @return builder
         * 
         */
        public Builder isSecuritySite(@Nullable Output isSecuritySite) {
            $.isSecuritySite = isSecuritySite;
            return this;
        }

        /**
         * @param isSecuritySite IsSecuritySite flag.
         * 
         * @return builder
         * 
         */
        public Builder isSecuritySite(Boolean isSecuritySite) {
            return isSecuritySite(Output.of(isSecuritySite));
        }

        /**
         * @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 o365Policy Office365 Policy.
         * 
         * @return builder
         * 
         */
        public Builder o365Policy(@Nullable Output o365Policy) {
            $.o365Policy = o365Policy;
            return this;
        }

        /**
         * @param o365Policy Office365 Policy.
         * 
         * @return builder
         * 
         */
        public Builder o365Policy(O365PolicyPropertiesArgs o365Policy) {
            return o365Policy(Output.of(o365Policy));
        }

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

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

        /**
         * @param siteKey The key for vpn-site that can be used for connections.
         * 
         * @return builder
         * 
         */
        public Builder siteKey(@Nullable Output siteKey) {
            $.siteKey = siteKey;
            return this;
        }

        /**
         * @param siteKey The key for vpn-site that can be used for connections.
         * 
         * @return builder
         * 
         */
        public Builder siteKey(String siteKey) {
            return siteKey(Output.of(siteKey));
        }

        /**
         * @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 virtualWan The VirtualWAN to which the vpnSite belongs.
         * 
         * @return builder
         * 
         */
        public Builder virtualWan(@Nullable Output virtualWan) {
            $.virtualWan = virtualWan;
            return this;
        }

        /**
         * @param virtualWan The VirtualWAN to which the vpnSite belongs.
         * 
         * @return builder
         * 
         */
        public Builder virtualWan(SubResourceArgs virtualWan) {
            return virtualWan(Output.of(virtualWan));
        }

        /**
         * @param vpnSiteLinks List of all vpn site links.
         * 
         * @return builder
         * 
         */
        public Builder vpnSiteLinks(@Nullable Output> vpnSiteLinks) {
            $.vpnSiteLinks = vpnSiteLinks;
            return this;
        }

        /**
         * @param vpnSiteLinks List of all vpn site links.
         * 
         * @return builder
         * 
         */
        public Builder vpnSiteLinks(List vpnSiteLinks) {
            return vpnSiteLinks(Output.of(vpnSiteLinks));
        }

        /**
         * @param vpnSiteLinks List of all vpn site links.
         * 
         * @return builder
         * 
         */
        public Builder vpnSiteLinks(VpnSiteLinkArgs... vpnSiteLinks) {
            return vpnSiteLinks(List.of(vpnSiteLinks));
        }

        /**
         * @param vpnSiteName The name of the VpnSite being created or updated.
         * 
         * @return builder
         * 
         */
        public Builder vpnSiteName(@Nullable Output vpnSiteName) {
            $.vpnSiteName = vpnSiteName;
            return this;
        }

        /**
         * @param vpnSiteName The name of the VpnSite being created or updated.
         * 
         * @return builder
         * 
         */
        public Builder vpnSiteName(String vpnSiteName) {
            return vpnSiteName(Output.of(vpnSiteName));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy