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

com.pulumi.azurenative.network.P2sVpnGatewayArgs 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.P2SConnectionConfigurationArgs;
import com.pulumi.azurenative.network.inputs.SubResourceArgs;
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 P2sVpnGatewayArgs extends com.pulumi.resources.ResourceArgs {

    public static final P2sVpnGatewayArgs Empty = new P2sVpnGatewayArgs();

    /**
     * List of all customer specified DNS servers IP addresses.
     * 
     */
    @Import(name="customDnsServers")
    private @Nullable Output> customDnsServers;

    /**
     * @return List of all customer specified DNS servers IP addresses.
     * 
     */
    public Optional>> customDnsServers() {
        return Optional.ofNullable(this.customDnsServers);
    }

    /**
     * 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 P2SVpnGateway.
     * 
     */
    @Import(name="isRoutingPreferenceInternet")
    private @Nullable Output isRoutingPreferenceInternet;

    /**
     * @return Enable Routing Preference property for the Public IP Interface of the P2SVpnGateway.
     * 
     */
    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 p2s connection configurations of the gateway.
     * 
     */
    @Import(name="p2SConnectionConfigurations")
    private @Nullable Output> p2SConnectionConfigurations;

    /**
     * @return List of all p2s connection configurations of the gateway.
     * 
     */
    public Optional>> p2SConnectionConfigurations() {
        return Optional.ofNullable(this.p2SConnectionConfigurations);
    }

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

    /**
     * @return The resource group name of the P2SVpnGateway.
     * 
     */
    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 p2s vpn gateway.
     * 
     */
    @Import(name="vpnGatewayScaleUnit")
    private @Nullable Output vpnGatewayScaleUnit;

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

    /**
     * The VpnServerConfiguration to which the p2sVpnGateway is attached to.
     * 
     */
    @Import(name="vpnServerConfiguration")
    private @Nullable Output vpnServerConfiguration;

    /**
     * @return The VpnServerConfiguration to which the p2sVpnGateway is attached to.
     * 
     */
    public Optional> vpnServerConfiguration() {
        return Optional.ofNullable(this.vpnServerConfiguration);
    }

    private P2sVpnGatewayArgs() {}

    private P2sVpnGatewayArgs(P2sVpnGatewayArgs $) {
        this.customDnsServers = $.customDnsServers;
        this.gatewayName = $.gatewayName;
        this.id = $.id;
        this.isRoutingPreferenceInternet = $.isRoutingPreferenceInternet;
        this.location = $.location;
        this.p2SConnectionConfigurations = $.p2SConnectionConfigurations;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.virtualHub = $.virtualHub;
        this.vpnGatewayScaleUnit = $.vpnGatewayScaleUnit;
        this.vpnServerConfiguration = $.vpnServerConfiguration;
    }

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

    public static final class Builder {
        private P2sVpnGatewayArgs $;

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

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

        /**
         * @param customDnsServers List of all customer specified DNS servers IP addresses.
         * 
         * @return builder
         * 
         */
        public Builder customDnsServers(@Nullable Output> customDnsServers) {
            $.customDnsServers = customDnsServers;
            return this;
        }

        /**
         * @param customDnsServers List of all customer specified DNS servers IP addresses.
         * 
         * @return builder
         * 
         */
        public Builder customDnsServers(List customDnsServers) {
            return customDnsServers(Output.of(customDnsServers));
        }

        /**
         * @param customDnsServers List of all customer specified DNS servers IP addresses.
         * 
         * @return builder
         * 
         */
        public Builder customDnsServers(String... customDnsServers) {
            return customDnsServers(List.of(customDnsServers));
        }

        /**
         * @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 P2SVpnGateway.
         * 
         * @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 P2SVpnGateway.
         * 
         * @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 p2SConnectionConfigurations List of all p2s connection configurations of the gateway.
         * 
         * @return builder
         * 
         */
        public Builder p2SConnectionConfigurations(@Nullable Output> p2SConnectionConfigurations) {
            $.p2SConnectionConfigurations = p2SConnectionConfigurations;
            return this;
        }

        /**
         * @param p2SConnectionConfigurations List of all p2s connection configurations of the gateway.
         * 
         * @return builder
         * 
         */
        public Builder p2SConnectionConfigurations(List p2SConnectionConfigurations) {
            return p2SConnectionConfigurations(Output.of(p2SConnectionConfigurations));
        }

        /**
         * @param p2SConnectionConfigurations List of all p2s connection configurations of the gateway.
         * 
         * @return builder
         * 
         */
        public Builder p2SConnectionConfigurations(P2SConnectionConfigurationArgs... p2SConnectionConfigurations) {
            return p2SConnectionConfigurations(List.of(p2SConnectionConfigurations));
        }

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

        /**
         * @param resourceGroupName The resource group name of the P2SVpnGateway.
         * 
         * @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 p2s vpn gateway.
         * 
         * @return builder
         * 
         */
        public Builder vpnGatewayScaleUnit(@Nullable Output vpnGatewayScaleUnit) {
            $.vpnGatewayScaleUnit = vpnGatewayScaleUnit;
            return this;
        }

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

        /**
         * @param vpnServerConfiguration The VpnServerConfiguration to which the p2sVpnGateway is attached to.
         * 
         * @return builder
         * 
         */
        public Builder vpnServerConfiguration(@Nullable Output vpnServerConfiguration) {
            $.vpnServerConfiguration = vpnServerConfiguration;
            return this;
        }

        /**
         * @param vpnServerConfiguration The VpnServerConfiguration to which the p2sVpnGateway is attached to.
         * 
         * @return builder
         * 
         */
        public Builder vpnServerConfiguration(SubResourceArgs vpnServerConfiguration) {
            return vpnServerConfiguration(Output.of(vpnServerConfiguration));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy