// *** 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.inputs;

import com.pulumi.azure.network.inputs.PointToPointVpnGatewayConnectionConfigurationRouteArgs;
import com.pulumi.azure.network.inputs.PointToPointVpnGatewayConnectionConfigurationVpnClientAddressPoolArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PointToPointVpnGatewayConnectionConfigurationArgs Empty = new PointToPointVpnGatewayConnectionConfigurationArgs();

    /**
     * Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to `false`.
     * 
     */
    @Import(name="internetSecurityEnabled")
    private @Nullable Output<Boolean> internetSecurityEnabled;

    /**
     * @return Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to `false`.
     * 
     */
    public Optional<Output<Boolean>> internetSecurityEnabled() {
        return Optional.ofNullable(this.internetSecurityEnabled);
    }

    /**
     * The Name which should be used for this Connection Configuration.
     * 
     */
    @Import(name="name", required=true)
    private Output<String> name;

    /**
     * @return The Name which should be used for this Connection Configuration.
     * 
     */
    public Output<String> name() {
        return this.name;
    }

    /**
     * A `route` block as defined below.
     * 
     */
    @Import(name="route")
    private @Nullable Output<PointToPointVpnGatewayConnectionConfigurationRouteArgs> route;

    /**
     * @return A `route` block as defined below.
     * 
     */
    public Optional<Output<PointToPointVpnGatewayConnectionConfigurationRouteArgs>> route() {
        return Optional.ofNullable(this.route);
    }

    /**
     * A `vpn_client_address_pool` block as defined below.
     * 
     */
    @Import(name="vpnClientAddressPool", required=true)
    private Output<PointToPointVpnGatewayConnectionConfigurationVpnClientAddressPoolArgs> vpnClientAddressPool;

    /**
     * @return A `vpn_client_address_pool` block as defined below.
     * 
     */
    public Output<PointToPointVpnGatewayConnectionConfigurationVpnClientAddressPoolArgs> vpnClientAddressPool() {
        return this.vpnClientAddressPool;
    }

    private PointToPointVpnGatewayConnectionConfigurationArgs() {}

    private PointToPointVpnGatewayConnectionConfigurationArgs(PointToPointVpnGatewayConnectionConfigurationArgs $) {
        this.internetSecurityEnabled = $.internetSecurityEnabled;
        this.name = $.name;
        this.route = $.route;
        this.vpnClientAddressPool = $.vpnClientAddressPool;
    }

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

    public static final class Builder {
        private PointToPointVpnGatewayConnectionConfigurationArgs $;

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

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

        /**
         * @param internetSecurityEnabled Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder internetSecurityEnabled(@Nullable Output<Boolean> internetSecurityEnabled) {
            $.internetSecurityEnabled = internetSecurityEnabled;
            return this;
        }

        /**
         * @param internetSecurityEnabled Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder internetSecurityEnabled(Boolean internetSecurityEnabled) {
            return internetSecurityEnabled(Output.of(internetSecurityEnabled));
        }

        /**
         * @param name The Name which should be used for this Connection Configuration.
         * 
         * @return builder
         * 
         */
        public Builder name(Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The Name which should be used for this Connection Configuration.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param route A `route` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder route(@Nullable Output<PointToPointVpnGatewayConnectionConfigurationRouteArgs> route) {
            $.route = route;
            return this;
        }

        /**
         * @param route A `route` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder route(PointToPointVpnGatewayConnectionConfigurationRouteArgs route) {
            return route(Output.of(route));
        }

        /**
         * @param vpnClientAddressPool A `vpn_client_address_pool` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder vpnClientAddressPool(Output<PointToPointVpnGatewayConnectionConfigurationVpnClientAddressPoolArgs> vpnClientAddressPool) {
            $.vpnClientAddressPool = vpnClientAddressPool;
            return this;
        }

        /**
         * @param vpnClientAddressPool A `vpn_client_address_pool` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder vpnClientAddressPool(PointToPointVpnGatewayConnectionConfigurationVpnClientAddressPoolArgs vpnClientAddressPool) {
            return vpnClientAddressPool(Output.of(vpnClientAddressPool));
        }

        public PointToPointVpnGatewayConnectionConfigurationArgs build() {
            $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null");
            $.vpnClientAddressPool = Objects.requireNonNull($.vpnClientAddressPool, "expected parameter 'vpnClientAddressPool' to be non-null");
            return $;
        }
    }

}
