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

com.pulumi.azure.network.inputs.VirtualNetworkGatewayConnectionIpsecPolicyArgs 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final VirtualNetworkGatewayConnectionIpsecPolicyArgs Empty = new VirtualNetworkGatewayConnectionIpsecPolicyArgs();

    /**
     * The DH group used in IKE phase 1 for initial SA. Valid options are `DHGroup1`, `DHGroup14`, `DHGroup2`, `DHGroup2048`, `DHGroup24`, `ECP256`, `ECP384`, or `None`.
     * 
     */
    @Import(name="dhGroup", required=true)
    private Output dhGroup;

    /**
     * @return The DH group used in IKE phase 1 for initial SA. Valid options are `DHGroup1`, `DHGroup14`, `DHGroup2`, `DHGroup2048`, `DHGroup24`, `ECP256`, `ECP384`, or `None`.
     * 
     */
    public Output dhGroup() {
        return this.dhGroup;
    }

    /**
     * The IKE encryption algorithm. Valid options are `AES128`, `AES192`, `AES256`, `DES`, `DES3`, `GCMAES128`, or `GCMAES256`.
     * 
     */
    @Import(name="ikeEncryption", required=true)
    private Output ikeEncryption;

    /**
     * @return The IKE encryption algorithm. Valid options are `AES128`, `AES192`, `AES256`, `DES`, `DES3`, `GCMAES128`, or `GCMAES256`.
     * 
     */
    public Output ikeEncryption() {
        return this.ikeEncryption;
    }

    /**
     * The IKE integrity algorithm. Valid options are `GCMAES128`, `GCMAES256`, `MD5`, `SHA1`, `SHA256`, or `SHA384`.
     * 
     */
    @Import(name="ikeIntegrity", required=true)
    private Output ikeIntegrity;

    /**
     * @return The IKE integrity algorithm. Valid options are `GCMAES128`, `GCMAES256`, `MD5`, `SHA1`, `SHA256`, or `SHA384`.
     * 
     */
    public Output ikeIntegrity() {
        return this.ikeIntegrity;
    }

    /**
     * The IPSec encryption algorithm. Valid options are `AES128`, `AES192`, `AES256`, `DES`, `DES3`, `GCMAES128`, `GCMAES192`, `GCMAES256`, or `None`.
     * 
     */
    @Import(name="ipsecEncryption", required=true)
    private Output ipsecEncryption;

    /**
     * @return The IPSec encryption algorithm. Valid options are `AES128`, `AES192`, `AES256`, `DES`, `DES3`, `GCMAES128`, `GCMAES192`, `GCMAES256`, or `None`.
     * 
     */
    public Output ipsecEncryption() {
        return this.ipsecEncryption;
    }

    /**
     * The IPSec integrity algorithm. Valid options are `GCMAES128`, `GCMAES192`, `GCMAES256`, `MD5`, `SHA1`, or `SHA256`.
     * 
     */
    @Import(name="ipsecIntegrity", required=true)
    private Output ipsecIntegrity;

    /**
     * @return The IPSec integrity algorithm. Valid options are `GCMAES128`, `GCMAES192`, `GCMAES256`, `MD5`, `SHA1`, or `SHA256`.
     * 
     */
    public Output ipsecIntegrity() {
        return this.ipsecIntegrity;
    }

    /**
     * The DH group used in IKE phase 2 for new child SA.
     * Valid options are `ECP256`, `ECP384`, `PFS1`, `PFS14`, `PFS2`, `PFS2048`, `PFS24`, `PFSMM`,
     * or `None`.
     * 
     */
    @Import(name="pfsGroup", required=true)
    private Output pfsGroup;

    /**
     * @return The DH group used in IKE phase 2 for new child SA.
     * Valid options are `ECP256`, `ECP384`, `PFS1`, `PFS14`, `PFS2`, `PFS2048`, `PFS24`, `PFSMM`,
     * or `None`.
     * 
     */
    public Output pfsGroup() {
        return this.pfsGroup;
    }

    /**
     * The IPSec SA payload size in KB. Must be at least `1024` KB. Defaults to `102400000` KB.
     * 
     */
    @Import(name="saDatasize")
    private @Nullable Output saDatasize;

    /**
     * @return The IPSec SA payload size in KB. Must be at least `1024` KB. Defaults to `102400000` KB.
     * 
     */
    public Optional> saDatasize() {
        return Optional.ofNullable(this.saDatasize);
    }

    /**
     * The IPSec SA lifetime in seconds. Must be at least `300` seconds. Defaults to `27000` seconds.
     * 
     */
    @Import(name="saLifetime")
    private @Nullable Output saLifetime;

    /**
     * @return The IPSec SA lifetime in seconds. Must be at least `300` seconds. Defaults to `27000` seconds.
     * 
     */
    public Optional> saLifetime() {
        return Optional.ofNullable(this.saLifetime);
    }

    private VirtualNetworkGatewayConnectionIpsecPolicyArgs() {}

    private VirtualNetworkGatewayConnectionIpsecPolicyArgs(VirtualNetworkGatewayConnectionIpsecPolicyArgs $) {
        this.dhGroup = $.dhGroup;
        this.ikeEncryption = $.ikeEncryption;
        this.ikeIntegrity = $.ikeIntegrity;
        this.ipsecEncryption = $.ipsecEncryption;
        this.ipsecIntegrity = $.ipsecIntegrity;
        this.pfsGroup = $.pfsGroup;
        this.saDatasize = $.saDatasize;
        this.saLifetime = $.saLifetime;
    }

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

    public static final class Builder {
        private VirtualNetworkGatewayConnectionIpsecPolicyArgs $;

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

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

        /**
         * @param dhGroup The DH group used in IKE phase 1 for initial SA. Valid options are `DHGroup1`, `DHGroup14`, `DHGroup2`, `DHGroup2048`, `DHGroup24`, `ECP256`, `ECP384`, or `None`.
         * 
         * @return builder
         * 
         */
        public Builder dhGroup(Output dhGroup) {
            $.dhGroup = dhGroup;
            return this;
        }

        /**
         * @param dhGroup The DH group used in IKE phase 1 for initial SA. Valid options are `DHGroup1`, `DHGroup14`, `DHGroup2`, `DHGroup2048`, `DHGroup24`, `ECP256`, `ECP384`, or `None`.
         * 
         * @return builder
         * 
         */
        public Builder dhGroup(String dhGroup) {
            return dhGroup(Output.of(dhGroup));
        }

        /**
         * @param ikeEncryption The IKE encryption algorithm. Valid options are `AES128`, `AES192`, `AES256`, `DES`, `DES3`, `GCMAES128`, or `GCMAES256`.
         * 
         * @return builder
         * 
         */
        public Builder ikeEncryption(Output ikeEncryption) {
            $.ikeEncryption = ikeEncryption;
            return this;
        }

        /**
         * @param ikeEncryption The IKE encryption algorithm. Valid options are `AES128`, `AES192`, `AES256`, `DES`, `DES3`, `GCMAES128`, or `GCMAES256`.
         * 
         * @return builder
         * 
         */
        public Builder ikeEncryption(String ikeEncryption) {
            return ikeEncryption(Output.of(ikeEncryption));
        }

        /**
         * @param ikeIntegrity The IKE integrity algorithm. Valid options are `GCMAES128`, `GCMAES256`, `MD5`, `SHA1`, `SHA256`, or `SHA384`.
         * 
         * @return builder
         * 
         */
        public Builder ikeIntegrity(Output ikeIntegrity) {
            $.ikeIntegrity = ikeIntegrity;
            return this;
        }

        /**
         * @param ikeIntegrity The IKE integrity algorithm. Valid options are `GCMAES128`, `GCMAES256`, `MD5`, `SHA1`, `SHA256`, or `SHA384`.
         * 
         * @return builder
         * 
         */
        public Builder ikeIntegrity(String ikeIntegrity) {
            return ikeIntegrity(Output.of(ikeIntegrity));
        }

        /**
         * @param ipsecEncryption The IPSec encryption algorithm. Valid options are `AES128`, `AES192`, `AES256`, `DES`, `DES3`, `GCMAES128`, `GCMAES192`, `GCMAES256`, or `None`.
         * 
         * @return builder
         * 
         */
        public Builder ipsecEncryption(Output ipsecEncryption) {
            $.ipsecEncryption = ipsecEncryption;
            return this;
        }

        /**
         * @param ipsecEncryption The IPSec encryption algorithm. Valid options are `AES128`, `AES192`, `AES256`, `DES`, `DES3`, `GCMAES128`, `GCMAES192`, `GCMAES256`, or `None`.
         * 
         * @return builder
         * 
         */
        public Builder ipsecEncryption(String ipsecEncryption) {
            return ipsecEncryption(Output.of(ipsecEncryption));
        }

        /**
         * @param ipsecIntegrity The IPSec integrity algorithm. Valid options are `GCMAES128`, `GCMAES192`, `GCMAES256`, `MD5`, `SHA1`, or `SHA256`.
         * 
         * @return builder
         * 
         */
        public Builder ipsecIntegrity(Output ipsecIntegrity) {
            $.ipsecIntegrity = ipsecIntegrity;
            return this;
        }

        /**
         * @param ipsecIntegrity The IPSec integrity algorithm. Valid options are `GCMAES128`, `GCMAES192`, `GCMAES256`, `MD5`, `SHA1`, or `SHA256`.
         * 
         * @return builder
         * 
         */
        public Builder ipsecIntegrity(String ipsecIntegrity) {
            return ipsecIntegrity(Output.of(ipsecIntegrity));
        }

        /**
         * @param pfsGroup The DH group used in IKE phase 2 for new child SA.
         * Valid options are `ECP256`, `ECP384`, `PFS1`, `PFS14`, `PFS2`, `PFS2048`, `PFS24`, `PFSMM`,
         * or `None`.
         * 
         * @return builder
         * 
         */
        public Builder pfsGroup(Output pfsGroup) {
            $.pfsGroup = pfsGroup;
            return this;
        }

        /**
         * @param pfsGroup The DH group used in IKE phase 2 for new child SA.
         * Valid options are `ECP256`, `ECP384`, `PFS1`, `PFS14`, `PFS2`, `PFS2048`, `PFS24`, `PFSMM`,
         * or `None`.
         * 
         * @return builder
         * 
         */
        public Builder pfsGroup(String pfsGroup) {
            return pfsGroup(Output.of(pfsGroup));
        }

        /**
         * @param saDatasize The IPSec SA payload size in KB. Must be at least `1024` KB. Defaults to `102400000` KB.
         * 
         * @return builder
         * 
         */
        public Builder saDatasize(@Nullable Output saDatasize) {
            $.saDatasize = saDatasize;
            return this;
        }

        /**
         * @param saDatasize The IPSec SA payload size in KB. Must be at least `1024` KB. Defaults to `102400000` KB.
         * 
         * @return builder
         * 
         */
        public Builder saDatasize(Integer saDatasize) {
            return saDatasize(Output.of(saDatasize));
        }

        /**
         * @param saLifetime The IPSec SA lifetime in seconds. Must be at least `300` seconds. Defaults to `27000` seconds.
         * 
         * @return builder
         * 
         */
        public Builder saLifetime(@Nullable Output saLifetime) {
            $.saLifetime = saLifetime;
            return this;
        }

        /**
         * @param saLifetime The IPSec SA lifetime in seconds. Must be at least `300` seconds. Defaults to `27000` seconds.
         * 
         * @return builder
         * 
         */
        public Builder saLifetime(Integer saLifetime) {
            return saLifetime(Output.of(saLifetime));
        }

        public VirtualNetworkGatewayConnectionIpsecPolicyArgs build() {
            if ($.dhGroup == null) {
                throw new MissingRequiredPropertyException("VirtualNetworkGatewayConnectionIpsecPolicyArgs", "dhGroup");
            }
            if ($.ikeEncryption == null) {
                throw new MissingRequiredPropertyException("VirtualNetworkGatewayConnectionIpsecPolicyArgs", "ikeEncryption");
            }
            if ($.ikeIntegrity == null) {
                throw new MissingRequiredPropertyException("VirtualNetworkGatewayConnectionIpsecPolicyArgs", "ikeIntegrity");
            }
            if ($.ipsecEncryption == null) {
                throw new MissingRequiredPropertyException("VirtualNetworkGatewayConnectionIpsecPolicyArgs", "ipsecEncryption");
            }
            if ($.ipsecIntegrity == null) {
                throw new MissingRequiredPropertyException("VirtualNetworkGatewayConnectionIpsecPolicyArgs", "ipsecIntegrity");
            }
            if ($.pfsGroup == null) {
                throw new MissingRequiredPropertyException("VirtualNetworkGatewayConnectionIpsecPolicyArgs", "pfsGroup");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy