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

com.azure.resourcemanager.network.models.FirewallPolicySnat Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure Network Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt

There is a newer version: 2.44.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.network.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/**
 * The private IP addresses/IP ranges to which traffic will not be SNAT.
 */
@Fluent
public final class FirewallPolicySnat {
    /*
     * List of private IP addresses/IP address ranges to not be SNAT.
     */
    @JsonProperty(value = "privateRanges")
    private List privateRanges;

    /*
     * The operation mode for automatically learning private ranges to not be SNAT
     */
    @JsonProperty(value = "autoLearnPrivateRanges")
    private AutoLearnPrivateRangesMode autoLearnPrivateRanges;

    /**
     * Creates an instance of FirewallPolicySnat class.
     */
    public FirewallPolicySnat() {
    }

    /**
     * Get the privateRanges property: List of private IP addresses/IP address ranges to not be SNAT.
     * 
     * @return the privateRanges value.
     */
    public List privateRanges() {
        return this.privateRanges;
    }

    /**
     * Set the privateRanges property: List of private IP addresses/IP address ranges to not be SNAT.
     * 
     * @param privateRanges the privateRanges value to set.
     * @return the FirewallPolicySnat object itself.
     */
    public FirewallPolicySnat withPrivateRanges(List privateRanges) {
        this.privateRanges = privateRanges;
        return this;
    }

    /**
     * Get the autoLearnPrivateRanges property: The operation mode for automatically learning private ranges to not be
     * SNAT.
     * 
     * @return the autoLearnPrivateRanges value.
     */
    public AutoLearnPrivateRangesMode autoLearnPrivateRanges() {
        return this.autoLearnPrivateRanges;
    }

    /**
     * Set the autoLearnPrivateRanges property: The operation mode for automatically learning private ranges to not be
     * SNAT.
     * 
     * @param autoLearnPrivateRanges the autoLearnPrivateRanges value to set.
     * @return the FirewallPolicySnat object itself.
     */
    public FirewallPolicySnat withAutoLearnPrivateRanges(AutoLearnPrivateRangesMode autoLearnPrivateRanges) {
        this.autoLearnPrivateRanges = autoLearnPrivateRanges;
        return this;
    }

    /**
     * Validates the instance.
     * 
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy