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

com.pulumi.azure.network.inputs.VirtualNetworkGatewayNatRuleState 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.azure.network.inputs.VirtualNetworkGatewayNatRuleExternalMappingArgs;
import com.pulumi.azure.network.inputs.VirtualNetworkGatewayNatRuleInternalMappingArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final VirtualNetworkGatewayNatRuleState Empty = new VirtualNetworkGatewayNatRuleState();

    /**
     * One or more `external_mapping` blocks as documented below.
     * 
     */
    @Import(name="externalMappings")
    private @Nullable Output> externalMappings;

    /**
     * @return One or more `external_mapping` blocks as documented below.
     * 
     */
    public Optional>> externalMappings() {
        return Optional.ofNullable(this.externalMappings);
    }

    /**
     * One or more `internal_mapping` blocks as documented below.
     * 
     */
    @Import(name="internalMappings")
    private @Nullable Output> internalMappings;

    /**
     * @return One or more `internal_mapping` blocks as documented below.
     * 
     */
    public Optional>> internalMappings() {
        return Optional.ofNullable(this.internalMappings);
    }

    /**
     * The ID of the IP Configuration this Virtual Network Gateway Nat Rule applies to.
     * 
     */
    @Import(name="ipConfigurationId")
    private @Nullable Output ipConfigurationId;

    /**
     * @return The ID of the IP Configuration this Virtual Network Gateway Nat Rule applies to.
     * 
     */
    public Optional> ipConfigurationId() {
        return Optional.ofNullable(this.ipConfigurationId);
    }

    /**
     * The source Nat direction of the Virtual Network Gateway Nat. Possible values are `EgressSnat` and `IngressSnat`. Defaults to `EgressSnat`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="mode")
    private @Nullable Output mode;

    /**
     * @return The source Nat direction of the Virtual Network Gateway Nat. Possible values are `EgressSnat` and `IngressSnat`. Defaults to `EgressSnat`. Changing this forces a new resource to be created.
     * 
     */
    public Optional> mode() {
        return Optional.ofNullable(this.mode);
    }

    /**
     * The name which should be used for this Virtual Network Gateway Nat Rule. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this Virtual Network Gateway Nat Rule. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The Name of the Resource Group in which this Virtual Network Gateway Nat Rule should be created. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName")
    private @Nullable Output resourceGroupName;

    /**
     * @return The Name of the Resource Group in which this Virtual Network Gateway Nat Rule should be created. Changing this forces a new resource to be created.
     * 
     */
    public Optional> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

    /**
     * The type of the Virtual Network Gateway Nat Rule. Possible values are `Dynamic` and `Static`. Defaults to `Static`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return The type of the Virtual Network Gateway Nat Rule. Possible values are `Dynamic` and `Static`. Defaults to `Static`. Changing this forces a new resource to be created.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    /**
     * The ID of the Virtual Network Gateway that this Virtual Network Gateway Nat Rule belongs to. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="virtualNetworkGatewayId")
    private @Nullable Output virtualNetworkGatewayId;

    /**
     * @return The ID of the Virtual Network Gateway that this Virtual Network Gateway Nat Rule belongs to. Changing this forces a new resource to be created.
     * 
     */
    public Optional> virtualNetworkGatewayId() {
        return Optional.ofNullable(this.virtualNetworkGatewayId);
    }

    private VirtualNetworkGatewayNatRuleState() {}

    private VirtualNetworkGatewayNatRuleState(VirtualNetworkGatewayNatRuleState $) {
        this.externalMappings = $.externalMappings;
        this.internalMappings = $.internalMappings;
        this.ipConfigurationId = $.ipConfigurationId;
        this.mode = $.mode;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.type = $.type;
        this.virtualNetworkGatewayId = $.virtualNetworkGatewayId;
    }

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

    public static final class Builder {
        private VirtualNetworkGatewayNatRuleState $;

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

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

        /**
         * @param externalMappings One or more `external_mapping` blocks as documented below.
         * 
         * @return builder
         * 
         */
        public Builder externalMappings(@Nullable Output> externalMappings) {
            $.externalMappings = externalMappings;
            return this;
        }

        /**
         * @param externalMappings One or more `external_mapping` blocks as documented below.
         * 
         * @return builder
         * 
         */
        public Builder externalMappings(List externalMappings) {
            return externalMappings(Output.of(externalMappings));
        }

        /**
         * @param externalMappings One or more `external_mapping` blocks as documented below.
         * 
         * @return builder
         * 
         */
        public Builder externalMappings(VirtualNetworkGatewayNatRuleExternalMappingArgs... externalMappings) {
            return externalMappings(List.of(externalMappings));
        }

        /**
         * @param internalMappings One or more `internal_mapping` blocks as documented below.
         * 
         * @return builder
         * 
         */
        public Builder internalMappings(@Nullable Output> internalMappings) {
            $.internalMappings = internalMappings;
            return this;
        }

        /**
         * @param internalMappings One or more `internal_mapping` blocks as documented below.
         * 
         * @return builder
         * 
         */
        public Builder internalMappings(List internalMappings) {
            return internalMappings(Output.of(internalMappings));
        }

        /**
         * @param internalMappings One or more `internal_mapping` blocks as documented below.
         * 
         * @return builder
         * 
         */
        public Builder internalMappings(VirtualNetworkGatewayNatRuleInternalMappingArgs... internalMappings) {
            return internalMappings(List.of(internalMappings));
        }

        /**
         * @param ipConfigurationId The ID of the IP Configuration this Virtual Network Gateway Nat Rule applies to.
         * 
         * @return builder
         * 
         */
        public Builder ipConfigurationId(@Nullable Output ipConfigurationId) {
            $.ipConfigurationId = ipConfigurationId;
            return this;
        }

        /**
         * @param ipConfigurationId The ID of the IP Configuration this Virtual Network Gateway Nat Rule applies to.
         * 
         * @return builder
         * 
         */
        public Builder ipConfigurationId(String ipConfigurationId) {
            return ipConfigurationId(Output.of(ipConfigurationId));
        }

        /**
         * @param mode The source Nat direction of the Virtual Network Gateway Nat. Possible values are `EgressSnat` and `IngressSnat`. Defaults to `EgressSnat`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder mode(@Nullable Output mode) {
            $.mode = mode;
            return this;
        }

        /**
         * @param mode The source Nat direction of the Virtual Network Gateway Nat. Possible values are `EgressSnat` and `IngressSnat`. Defaults to `EgressSnat`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder mode(String mode) {
            return mode(Output.of(mode));
        }

        /**
         * @param name The name which should be used for this Virtual Network Gateway Nat Rule. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Virtual Network Gateway Nat Rule. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceGroupName The Name of the Resource Group in which this Virtual Network Gateway Nat Rule should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(@Nullable Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The Name of the Resource Group in which this Virtual Network Gateway Nat Rule should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param type The type of the Virtual Network Gateway Nat Rule. Possible values are `Dynamic` and `Static`. Defaults to `Static`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of the Virtual Network Gateway Nat Rule. Possible values are `Dynamic` and `Static`. Defaults to `Static`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param virtualNetworkGatewayId The ID of the Virtual Network Gateway that this Virtual Network Gateway Nat Rule belongs to. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkGatewayId(@Nullable Output virtualNetworkGatewayId) {
            $.virtualNetworkGatewayId = virtualNetworkGatewayId;
            return this;
        }

        /**
         * @param virtualNetworkGatewayId The ID of the Virtual Network Gateway that this Virtual Network Gateway Nat Rule belongs to. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetworkGatewayId(String virtualNetworkGatewayId) {
            return virtualNetworkGatewayId(Output.of(virtualNetworkGatewayId));
        }

        public VirtualNetworkGatewayNatRuleState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy