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

com.pulumi.azure.network.inputs.VnpGatewayNatRuleInternalMappingArgs 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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final VnpGatewayNatRuleInternalMappingArgs Empty = new VnpGatewayNatRuleInternalMappingArgs();

    /**
     * The string CIDR representing the address space for the VPN Gateway Nat Rule internal mapping.
     * 
     */
    @Import(name="addressSpace", required=true)
    private Output addressSpace;

    /**
     * @return The string CIDR representing the address space for the VPN Gateway Nat Rule internal mapping.
     * 
     */
    public Output addressSpace() {
        return this.addressSpace;
    }

    /**
     * The single port range for the VPN Gateway Nat Rule internal mapping.
     * 
     */
    @Import(name="portRange")
    private @Nullable Output portRange;

    /**
     * @return The single port range for the VPN Gateway Nat Rule internal mapping.
     * 
     */
    public Optional> portRange() {
        return Optional.ofNullable(this.portRange);
    }

    private VnpGatewayNatRuleInternalMappingArgs() {}

    private VnpGatewayNatRuleInternalMappingArgs(VnpGatewayNatRuleInternalMappingArgs $) {
        this.addressSpace = $.addressSpace;
        this.portRange = $.portRange;
    }

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

    public static final class Builder {
        private VnpGatewayNatRuleInternalMappingArgs $;

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

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

        /**
         * @param addressSpace The string CIDR representing the address space for the VPN Gateway Nat Rule internal mapping.
         * 
         * @return builder
         * 
         */
        public Builder addressSpace(Output addressSpace) {
            $.addressSpace = addressSpace;
            return this;
        }

        /**
         * @param addressSpace The string CIDR representing the address space for the VPN Gateway Nat Rule internal mapping.
         * 
         * @return builder
         * 
         */
        public Builder addressSpace(String addressSpace) {
            return addressSpace(Output.of(addressSpace));
        }

        /**
         * @param portRange The single port range for the VPN Gateway Nat Rule internal mapping.
         * 
         * @return builder
         * 
         */
        public Builder portRange(@Nullable Output portRange) {
            $.portRange = portRange;
            return this;
        }

        /**
         * @param portRange The single port range for the VPN Gateway Nat Rule internal mapping.
         * 
         * @return builder
         * 
         */
        public Builder portRange(String portRange) {
            return portRange(Output.of(portRange));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy