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

com.azure.resourcemanager.network.models.VpnNatRuleMapping 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;

/**
 * Vpn NatRule mapping.
 */
@Fluent
public final class VpnNatRuleMapping {
    /*
     * Address space for Vpn NatRule mapping.
     */
    @JsonProperty(value = "addressSpace")
    private String addressSpace;

    /*
     * Port range for Vpn NatRule mapping.
     */
    @JsonProperty(value = "portRange")
    private String portRange;

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

    /**
     * Get the addressSpace property: Address space for Vpn NatRule mapping.
     * 
     * @return the addressSpace value.
     */
    public String addressSpace() {
        return this.addressSpace;
    }

    /**
     * Set the addressSpace property: Address space for Vpn NatRule mapping.
     * 
     * @param addressSpace the addressSpace value to set.
     * @return the VpnNatRuleMapping object itself.
     */
    public VpnNatRuleMapping withAddressSpace(String addressSpace) {
        this.addressSpace = addressSpace;
        return this;
    }

    /**
     * Get the portRange property: Port range for Vpn NatRule mapping.
     * 
     * @return the portRange value.
     */
    public String portRange() {
        return this.portRange;
    }

    /**
     * Set the portRange property: Port range for Vpn NatRule mapping.
     * 
     * @param portRange the portRange value to set.
     * @return the VpnNatRuleMapping object itself.
     */
    public VpnNatRuleMapping withPortRange(String portRange) {
        this.portRange = portRange;
        return this;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy