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

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

// *** 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.enums.VpnGatewayTunnelingProtocol;
import com.pulumi.azurenative.network.inputs.IpsecPolicyArgs;
import com.pulumi.azurenative.network.inputs.P2SVpnServerConfigRadiusClientRootCertificateArgs;
import com.pulumi.azurenative.network.inputs.P2SVpnServerConfigRadiusServerRootCertificateArgs;
import com.pulumi.azurenative.network.inputs.P2SVpnServerConfigVpnClientRevokedCertificateArgs;
import com.pulumi.azurenative.network.inputs.P2SVpnServerConfigVpnClientRootCertificateArgs;
import com.pulumi.core.Either;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final P2sVpnServerConfigurationArgs Empty = new P2sVpnServerConfigurationArgs();

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

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

    /**
     * The name of the P2SVpnServerConfiguration that is unique within a VirtualWan in a resource group. This name can be used to access the resource along with Paren VirtualWan resource name.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the P2SVpnServerConfiguration that is unique within a VirtualWan in a resource group. This name can be used to access the resource along with Paren VirtualWan resource name.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Radius client root certificate of P2SVpnServerConfiguration.
     * 
     */
    @Import(name="p2SVpnServerConfigRadiusClientRootCertificates")
    private @Nullable Output> p2SVpnServerConfigRadiusClientRootCertificates;

    /**
     * @return Radius client root certificate of P2SVpnServerConfiguration.
     * 
     */
    public Optional>> p2SVpnServerConfigRadiusClientRootCertificates() {
        return Optional.ofNullable(this.p2SVpnServerConfigRadiusClientRootCertificates);
    }

    /**
     * Radius Server root certificate of P2SVpnServerConfiguration.
     * 
     */
    @Import(name="p2SVpnServerConfigRadiusServerRootCertificates")
    private @Nullable Output> p2SVpnServerConfigRadiusServerRootCertificates;

    /**
     * @return Radius Server root certificate of P2SVpnServerConfiguration.
     * 
     */
    public Optional>> p2SVpnServerConfigRadiusServerRootCertificates() {
        return Optional.ofNullable(this.p2SVpnServerConfigRadiusServerRootCertificates);
    }

    /**
     * VPN client revoked certificate of P2SVpnServerConfiguration.
     * 
     */
    @Import(name="p2SVpnServerConfigVpnClientRevokedCertificates")
    private @Nullable Output> p2SVpnServerConfigVpnClientRevokedCertificates;

    /**
     * @return VPN client revoked certificate of P2SVpnServerConfiguration.
     * 
     */
    public Optional>> p2SVpnServerConfigVpnClientRevokedCertificates() {
        return Optional.ofNullable(this.p2SVpnServerConfigVpnClientRevokedCertificates);
    }

    /**
     * VPN client root certificate of P2SVpnServerConfiguration.
     * 
     */
    @Import(name="p2SVpnServerConfigVpnClientRootCertificates")
    private @Nullable Output> p2SVpnServerConfigVpnClientRootCertificates;

    /**
     * @return VPN client root certificate of P2SVpnServerConfiguration.
     * 
     */
    public Optional>> p2SVpnServerConfigVpnClientRootCertificates() {
        return Optional.ofNullable(this.p2SVpnServerConfigVpnClientRootCertificates);
    }

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

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

    /**
     * The radius server address property of the P2SVpnServerConfiguration resource for point to site client connection.
     * 
     */
    @Import(name="radiusServerAddress")
    private @Nullable Output radiusServerAddress;

    /**
     * @return The radius server address property of the P2SVpnServerConfiguration resource for point to site client connection.
     * 
     */
    public Optional> radiusServerAddress() {
        return Optional.ofNullable(this.radiusServerAddress);
    }

    /**
     * The radius secret property of the P2SVpnServerConfiguration resource for point to site client connection.
     * 
     */
    @Import(name="radiusServerSecret")
    private @Nullable Output radiusServerSecret;

    /**
     * @return The radius secret property of the P2SVpnServerConfiguration resource for point to site client connection.
     * 
     */
    public Optional> radiusServerSecret() {
        return Optional.ofNullable(this.radiusServerSecret);
    }

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

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

    /**
     * The name of the VirtualWan.
     * 
     */
    @Import(name="virtualWanName", required=true)
    private Output virtualWanName;

    /**
     * @return The name of the VirtualWan.
     * 
     */
    public Output virtualWanName() {
        return this.virtualWanName;
    }

    /**
     * VpnClientIpsecPolicies for P2SVpnServerConfiguration.
     * 
     */
    @Import(name="vpnClientIpsecPolicies")
    private @Nullable Output> vpnClientIpsecPolicies;

    /**
     * @return VpnClientIpsecPolicies for P2SVpnServerConfiguration.
     * 
     */
    public Optional>> vpnClientIpsecPolicies() {
        return Optional.ofNullable(this.vpnClientIpsecPolicies);
    }

    /**
     * VPN protocols for the P2SVpnServerConfiguration.
     * 
     */
    @Import(name="vpnProtocols")
    private @Nullable Output>> vpnProtocols;

    /**
     * @return VPN protocols for the P2SVpnServerConfiguration.
     * 
     */
    public Optional>>> vpnProtocols() {
        return Optional.ofNullable(this.vpnProtocols);
    }

    private P2sVpnServerConfigurationArgs() {}

    private P2sVpnServerConfigurationArgs(P2sVpnServerConfigurationArgs $) {
        this.id = $.id;
        this.name = $.name;
        this.p2SVpnServerConfigRadiusClientRootCertificates = $.p2SVpnServerConfigRadiusClientRootCertificates;
        this.p2SVpnServerConfigRadiusServerRootCertificates = $.p2SVpnServerConfigRadiusServerRootCertificates;
        this.p2SVpnServerConfigVpnClientRevokedCertificates = $.p2SVpnServerConfigVpnClientRevokedCertificates;
        this.p2SVpnServerConfigVpnClientRootCertificates = $.p2SVpnServerConfigVpnClientRootCertificates;
        this.p2SVpnServerConfigurationName = $.p2SVpnServerConfigurationName;
        this.radiusServerAddress = $.radiusServerAddress;
        this.radiusServerSecret = $.radiusServerSecret;
        this.resourceGroupName = $.resourceGroupName;
        this.virtualWanName = $.virtualWanName;
        this.vpnClientIpsecPolicies = $.vpnClientIpsecPolicies;
        this.vpnProtocols = $.vpnProtocols;
    }

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

    public static final class Builder {
        private P2sVpnServerConfigurationArgs $;

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

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

        /**
         * @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 name The name of the P2SVpnServerConfiguration that is unique within a VirtualWan in a resource group. This name can be used to access the resource along with Paren VirtualWan resource name.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the P2SVpnServerConfiguration that is unique within a VirtualWan in a resource group. This name can be used to access the resource along with Paren VirtualWan resource name.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param p2SVpnServerConfigRadiusClientRootCertificates Radius client root certificate of P2SVpnServerConfiguration.
         * 
         * @return builder
         * 
         */
        public Builder p2SVpnServerConfigRadiusClientRootCertificates(@Nullable Output> p2SVpnServerConfigRadiusClientRootCertificates) {
            $.p2SVpnServerConfigRadiusClientRootCertificates = p2SVpnServerConfigRadiusClientRootCertificates;
            return this;
        }

        /**
         * @param p2SVpnServerConfigRadiusClientRootCertificates Radius client root certificate of P2SVpnServerConfiguration.
         * 
         * @return builder
         * 
         */
        public Builder p2SVpnServerConfigRadiusClientRootCertificates(List p2SVpnServerConfigRadiusClientRootCertificates) {
            return p2SVpnServerConfigRadiusClientRootCertificates(Output.of(p2SVpnServerConfigRadiusClientRootCertificates));
        }

        /**
         * @param p2SVpnServerConfigRadiusClientRootCertificates Radius client root certificate of P2SVpnServerConfiguration.
         * 
         * @return builder
         * 
         */
        public Builder p2SVpnServerConfigRadiusClientRootCertificates(P2SVpnServerConfigRadiusClientRootCertificateArgs... p2SVpnServerConfigRadiusClientRootCertificates) {
            return p2SVpnServerConfigRadiusClientRootCertificates(List.of(p2SVpnServerConfigRadiusClientRootCertificates));
        }

        /**
         * @param p2SVpnServerConfigRadiusServerRootCertificates Radius Server root certificate of P2SVpnServerConfiguration.
         * 
         * @return builder
         * 
         */
        public Builder p2SVpnServerConfigRadiusServerRootCertificates(@Nullable Output> p2SVpnServerConfigRadiusServerRootCertificates) {
            $.p2SVpnServerConfigRadiusServerRootCertificates = p2SVpnServerConfigRadiusServerRootCertificates;
            return this;
        }

        /**
         * @param p2SVpnServerConfigRadiusServerRootCertificates Radius Server root certificate of P2SVpnServerConfiguration.
         * 
         * @return builder
         * 
         */
        public Builder p2SVpnServerConfigRadiusServerRootCertificates(List p2SVpnServerConfigRadiusServerRootCertificates) {
            return p2SVpnServerConfigRadiusServerRootCertificates(Output.of(p2SVpnServerConfigRadiusServerRootCertificates));
        }

        /**
         * @param p2SVpnServerConfigRadiusServerRootCertificates Radius Server root certificate of P2SVpnServerConfiguration.
         * 
         * @return builder
         * 
         */
        public Builder p2SVpnServerConfigRadiusServerRootCertificates(P2SVpnServerConfigRadiusServerRootCertificateArgs... p2SVpnServerConfigRadiusServerRootCertificates) {
            return p2SVpnServerConfigRadiusServerRootCertificates(List.of(p2SVpnServerConfigRadiusServerRootCertificates));
        }

        /**
         * @param p2SVpnServerConfigVpnClientRevokedCertificates VPN client revoked certificate of P2SVpnServerConfiguration.
         * 
         * @return builder
         * 
         */
        public Builder p2SVpnServerConfigVpnClientRevokedCertificates(@Nullable Output> p2SVpnServerConfigVpnClientRevokedCertificates) {
            $.p2SVpnServerConfigVpnClientRevokedCertificates = p2SVpnServerConfigVpnClientRevokedCertificates;
            return this;
        }

        /**
         * @param p2SVpnServerConfigVpnClientRevokedCertificates VPN client revoked certificate of P2SVpnServerConfiguration.
         * 
         * @return builder
         * 
         */
        public Builder p2SVpnServerConfigVpnClientRevokedCertificates(List p2SVpnServerConfigVpnClientRevokedCertificates) {
            return p2SVpnServerConfigVpnClientRevokedCertificates(Output.of(p2SVpnServerConfigVpnClientRevokedCertificates));
        }

        /**
         * @param p2SVpnServerConfigVpnClientRevokedCertificates VPN client revoked certificate of P2SVpnServerConfiguration.
         * 
         * @return builder
         * 
         */
        public Builder p2SVpnServerConfigVpnClientRevokedCertificates(P2SVpnServerConfigVpnClientRevokedCertificateArgs... p2SVpnServerConfigVpnClientRevokedCertificates) {
            return p2SVpnServerConfigVpnClientRevokedCertificates(List.of(p2SVpnServerConfigVpnClientRevokedCertificates));
        }

        /**
         * @param p2SVpnServerConfigVpnClientRootCertificates VPN client root certificate of P2SVpnServerConfiguration.
         * 
         * @return builder
         * 
         */
        public Builder p2SVpnServerConfigVpnClientRootCertificates(@Nullable Output> p2SVpnServerConfigVpnClientRootCertificates) {
            $.p2SVpnServerConfigVpnClientRootCertificates = p2SVpnServerConfigVpnClientRootCertificates;
            return this;
        }

        /**
         * @param p2SVpnServerConfigVpnClientRootCertificates VPN client root certificate of P2SVpnServerConfiguration.
         * 
         * @return builder
         * 
         */
        public Builder p2SVpnServerConfigVpnClientRootCertificates(List p2SVpnServerConfigVpnClientRootCertificates) {
            return p2SVpnServerConfigVpnClientRootCertificates(Output.of(p2SVpnServerConfigVpnClientRootCertificates));
        }

        /**
         * @param p2SVpnServerConfigVpnClientRootCertificates VPN client root certificate of P2SVpnServerConfiguration.
         * 
         * @return builder
         * 
         */
        public Builder p2SVpnServerConfigVpnClientRootCertificates(P2SVpnServerConfigVpnClientRootCertificateArgs... p2SVpnServerConfigVpnClientRootCertificates) {
            return p2SVpnServerConfigVpnClientRootCertificates(List.of(p2SVpnServerConfigVpnClientRootCertificates));
        }

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

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

        /**
         * @param radiusServerAddress The radius server address property of the P2SVpnServerConfiguration resource for point to site client connection.
         * 
         * @return builder
         * 
         */
        public Builder radiusServerAddress(@Nullable Output radiusServerAddress) {
            $.radiusServerAddress = radiusServerAddress;
            return this;
        }

        /**
         * @param radiusServerAddress The radius server address property of the P2SVpnServerConfiguration resource for point to site client connection.
         * 
         * @return builder
         * 
         */
        public Builder radiusServerAddress(String radiusServerAddress) {
            return radiusServerAddress(Output.of(radiusServerAddress));
        }

        /**
         * @param radiusServerSecret The radius secret property of the P2SVpnServerConfiguration resource for point to site client connection.
         * 
         * @return builder
         * 
         */
        public Builder radiusServerSecret(@Nullable Output radiusServerSecret) {
            $.radiusServerSecret = radiusServerSecret;
            return this;
        }

        /**
         * @param radiusServerSecret The radius secret property of the P2SVpnServerConfiguration resource for point to site client connection.
         * 
         * @return builder
         * 
         */
        public Builder radiusServerSecret(String radiusServerSecret) {
            return radiusServerSecret(Output.of(radiusServerSecret));
        }

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

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

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

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

        /**
         * @param vpnClientIpsecPolicies VpnClientIpsecPolicies for P2SVpnServerConfiguration.
         * 
         * @return builder
         * 
         */
        public Builder vpnClientIpsecPolicies(@Nullable Output> vpnClientIpsecPolicies) {
            $.vpnClientIpsecPolicies = vpnClientIpsecPolicies;
            return this;
        }

        /**
         * @param vpnClientIpsecPolicies VpnClientIpsecPolicies for P2SVpnServerConfiguration.
         * 
         * @return builder
         * 
         */
        public Builder vpnClientIpsecPolicies(List vpnClientIpsecPolicies) {
            return vpnClientIpsecPolicies(Output.of(vpnClientIpsecPolicies));
        }

        /**
         * @param vpnClientIpsecPolicies VpnClientIpsecPolicies for P2SVpnServerConfiguration.
         * 
         * @return builder
         * 
         */
        public Builder vpnClientIpsecPolicies(IpsecPolicyArgs... vpnClientIpsecPolicies) {
            return vpnClientIpsecPolicies(List.of(vpnClientIpsecPolicies));
        }

        /**
         * @param vpnProtocols VPN protocols for the P2SVpnServerConfiguration.
         * 
         * @return builder
         * 
         */
        public Builder vpnProtocols(@Nullable Output>> vpnProtocols) {
            $.vpnProtocols = vpnProtocols;
            return this;
        }

        /**
         * @param vpnProtocols VPN protocols for the P2SVpnServerConfiguration.
         * 
         * @return builder
         * 
         */
        public Builder vpnProtocols(List> vpnProtocols) {
            return vpnProtocols(Output.of(vpnProtocols));
        }

        /**
         * @param vpnProtocols VPN protocols for the P2SVpnServerConfiguration.
         * 
         * @return builder
         * 
         */
        public Builder vpnProtocols(Either... vpnProtocols) {
            return vpnProtocols(List.of(vpnProtocols));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy