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

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

There is a newer version: 2.82.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.AutoLearnPrivateRangesMode;
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;


/**
 * The private IP addresses/IP ranges to which traffic will not be SNAT.
 * 
 */
public final class FirewallPolicySNATArgs extends com.pulumi.resources.ResourceArgs {

    public static final FirewallPolicySNATArgs Empty = new FirewallPolicySNATArgs();

    /**
     * The operation mode for automatically learning private ranges to not be SNAT
     * 
     */
    @Import(name="autoLearnPrivateRanges")
    private @Nullable Output> autoLearnPrivateRanges;

    /**
     * @return The operation mode for automatically learning private ranges to not be SNAT
     * 
     */
    public Optional>> autoLearnPrivateRanges() {
        return Optional.ofNullable(this.autoLearnPrivateRanges);
    }

    /**
     * List of private IP addresses/IP address ranges to not be SNAT.
     * 
     */
    @Import(name="privateRanges")
    private @Nullable Output> privateRanges;

    /**
     * @return List of private IP addresses/IP address ranges to not be SNAT.
     * 
     */
    public Optional>> privateRanges() {
        return Optional.ofNullable(this.privateRanges);
    }

    private FirewallPolicySNATArgs() {}

    private FirewallPolicySNATArgs(FirewallPolicySNATArgs $) {
        this.autoLearnPrivateRanges = $.autoLearnPrivateRanges;
        this.privateRanges = $.privateRanges;
    }

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

    public static final class Builder {
        private FirewallPolicySNATArgs $;

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

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

        /**
         * @param autoLearnPrivateRanges The operation mode for automatically learning private ranges to not be SNAT
         * 
         * @return builder
         * 
         */
        public Builder autoLearnPrivateRanges(@Nullable Output> autoLearnPrivateRanges) {
            $.autoLearnPrivateRanges = autoLearnPrivateRanges;
            return this;
        }

        /**
         * @param autoLearnPrivateRanges The operation mode for automatically learning private ranges to not be SNAT
         * 
         * @return builder
         * 
         */
        public Builder autoLearnPrivateRanges(Either autoLearnPrivateRanges) {
            return autoLearnPrivateRanges(Output.of(autoLearnPrivateRanges));
        }

        /**
         * @param autoLearnPrivateRanges The operation mode for automatically learning private ranges to not be SNAT
         * 
         * @return builder
         * 
         */
        public Builder autoLearnPrivateRanges(String autoLearnPrivateRanges) {
            return autoLearnPrivateRanges(Either.ofLeft(autoLearnPrivateRanges));
        }

        /**
         * @param autoLearnPrivateRanges The operation mode for automatically learning private ranges to not be SNAT
         * 
         * @return builder
         * 
         */
        public Builder autoLearnPrivateRanges(AutoLearnPrivateRangesMode autoLearnPrivateRanges) {
            return autoLearnPrivateRanges(Either.ofRight(autoLearnPrivateRanges));
        }

        /**
         * @param privateRanges List of private IP addresses/IP address ranges to not be SNAT.
         * 
         * @return builder
         * 
         */
        public Builder privateRanges(@Nullable Output> privateRanges) {
            $.privateRanges = privateRanges;
            return this;
        }

        /**
         * @param privateRanges List of private IP addresses/IP address ranges to not be SNAT.
         * 
         * @return builder
         * 
         */
        public Builder privateRanges(List privateRanges) {
            return privateRanges(Output.of(privateRanges));
        }

        /**
         * @param privateRanges List of private IP addresses/IP address ranges to not be SNAT.
         * 
         * @return builder
         * 
         */
        public Builder privateRanges(String... privateRanges) {
            return privateRanges(List.of(privateRanges));
        }

        public FirewallPolicySNATArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy