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

com.pulumi.azurenative.network.inputs.VpnGatewayNatRuleArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.azurenative.network.inputs;

import com.pulumi.azurenative.network.enums.VpnNatRuleMode;
import com.pulumi.azurenative.network.enums.VpnNatRuleType;
import com.pulumi.azurenative.network.inputs.VpnNatRuleMappingArgs;
import com.pulumi.core.Either;
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;


/**
 * VpnGatewayNatRule Resource.
 * 
 */
public final class VpnGatewayNatRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final VpnGatewayNatRuleArgs Empty = new VpnGatewayNatRuleArgs();

    /**
     * The private IP address external mapping for NAT.
     * 
     */
    @Import(name="externalMappings")
    private @Nullable Output> externalMappings;

    /**
     * @return The private IP address external mapping for NAT.
     * 
     */
    public Optional>> externalMappings() {
        return Optional.ofNullable(this.externalMappings);
    }

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

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

    /**
     * The private IP address internal mapping for NAT.
     * 
     */
    @Import(name="internalMappings")
    private @Nullable Output> internalMappings;

    /**
     * @return The private IP address internal mapping for NAT.
     * 
     */
    public Optional>> internalMappings() {
        return Optional.ofNullable(this.internalMappings);
    }

    /**
     * The IP Configuration ID this NAT rule applies to.
     * 
     */
    @Import(name="ipConfigurationId")
    private @Nullable Output ipConfigurationId;

    /**
     * @return The IP Configuration ID this NAT rule applies to.
     * 
     */
    public Optional> ipConfigurationId() {
        return Optional.ofNullable(this.ipConfigurationId);
    }

    /**
     * The Source NAT direction of a VPN NAT.
     * 
     */
    @Import(name="mode")
    private @Nullable Output> mode;

    /**
     * @return The Source NAT direction of a VPN NAT.
     * 
     */
    public Optional>> mode() {
        return Optional.ofNullable(this.mode);
    }

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

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

    /**
     * The type of NAT rule for VPN NAT.
     * 
     */
    @Import(name="type")
    private @Nullable Output> type;

    /**
     * @return The type of NAT rule for VPN NAT.
     * 
     */
    public Optional>> type() {
        return Optional.ofNullable(this.type);
    }

    private VpnGatewayNatRuleArgs() {}

    private VpnGatewayNatRuleArgs(VpnGatewayNatRuleArgs $) {
        this.externalMappings = $.externalMappings;
        this.id = $.id;
        this.internalMappings = $.internalMappings;
        this.ipConfigurationId = $.ipConfigurationId;
        this.mode = $.mode;
        this.name = $.name;
        this.type = $.type;
    }

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

    public static final class Builder {
        private VpnGatewayNatRuleArgs $;

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

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

        /**
         * @param externalMappings The private IP address external mapping for NAT.
         * 
         * @return builder
         * 
         */
        public Builder externalMappings(@Nullable Output> externalMappings) {
            $.externalMappings = externalMappings;
            return this;
        }

        /**
         * @param externalMappings The private IP address external mapping for NAT.
         * 
         * @return builder
         * 
         */
        public Builder externalMappings(List externalMappings) {
            return externalMappings(Output.of(externalMappings));
        }

        /**
         * @param externalMappings The private IP address external mapping for NAT.
         * 
         * @return builder
         * 
         */
        public Builder externalMappings(VpnNatRuleMappingArgs... externalMappings) {
            return externalMappings(List.of(externalMappings));
        }

        /**
         * @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 internalMappings The private IP address internal mapping for NAT.
         * 
         * @return builder
         * 
         */
        public Builder internalMappings(@Nullable Output> internalMappings) {
            $.internalMappings = internalMappings;
            return this;
        }

        /**
         * @param internalMappings The private IP address internal mapping for NAT.
         * 
         * @return builder
         * 
         */
        public Builder internalMappings(List internalMappings) {
            return internalMappings(Output.of(internalMappings));
        }

        /**
         * @param internalMappings The private IP address internal mapping for NAT.
         * 
         * @return builder
         * 
         */
        public Builder internalMappings(VpnNatRuleMappingArgs... internalMappings) {
            return internalMappings(List.of(internalMappings));
        }

        /**
         * @param ipConfigurationId The IP Configuration ID this NAT rule applies to.
         * 
         * @return builder
         * 
         */
        public Builder ipConfigurationId(@Nullable Output ipConfigurationId) {
            $.ipConfigurationId = ipConfigurationId;
            return this;
        }

        /**
         * @param ipConfigurationId The IP Configuration ID this NAT rule applies to.
         * 
         * @return builder
         * 
         */
        public Builder ipConfigurationId(String ipConfigurationId) {
            return ipConfigurationId(Output.of(ipConfigurationId));
        }

        /**
         * @param mode The Source NAT direction of a VPN NAT.
         * 
         * @return builder
         * 
         */
        public Builder mode(@Nullable Output> mode) {
            $.mode = mode;
            return this;
        }

        /**
         * @param mode The Source NAT direction of a VPN NAT.
         * 
         * @return builder
         * 
         */
        public Builder mode(Either mode) {
            return mode(Output.of(mode));
        }

        /**
         * @param mode The Source NAT direction of a VPN NAT.
         * 
         * @return builder
         * 
         */
        public Builder mode(String mode) {
            return mode(Either.ofLeft(mode));
        }

        /**
         * @param mode The Source NAT direction of a VPN NAT.
         * 
         * @return builder
         * 
         */
        public Builder mode(VpnNatRuleMode mode) {
            return mode(Either.ofRight(mode));
        }

        /**
         * @param name The name of the resource that is unique within a resource group. This name can be used to access the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

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

        /**
         * @param type The type of NAT rule for VPN NAT.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of NAT rule for VPN NAT.
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type The type of NAT rule for VPN NAT.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type The type of NAT rule for VPN NAT.
         * 
         * @return builder
         * 
         */
        public Builder type(VpnNatRuleType type) {
            return type(Either.ofRight(type));
        }

        public VpnGatewayNatRuleArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy