com.azure.resourcemanager.network.models.QueryInboundNatRulePortMappingRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-network Show documentation
Show all versions of azure-resourcemanager-network Show documentation
This package contains Microsoft Azure Network Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// 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.azure.core.management.SubResource;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The request for a QueryInboundNatRulePortMapping API. Either IpConfiguration or IpAddress should be set.
*/
@Fluent
public final class QueryInboundNatRulePortMappingRequest {
/*
* NetworkInterfaceIPConfiguration set in load balancer backend address.
*/
@JsonProperty(value = "ipConfiguration")
private SubResource ipConfiguration;
/*
* IP address set in load balancer backend address.
*/
@JsonProperty(value = "ipAddress")
private String ipAddress;
/**
* Creates an instance of QueryInboundNatRulePortMappingRequest class.
*/
public QueryInboundNatRulePortMappingRequest() {
}
/**
* Get the ipConfiguration property: NetworkInterfaceIPConfiguration set in load balancer backend address.
*
* @return the ipConfiguration value.
*/
public SubResource ipConfiguration() {
return this.ipConfiguration;
}
/**
* Set the ipConfiguration property: NetworkInterfaceIPConfiguration set in load balancer backend address.
*
* @param ipConfiguration the ipConfiguration value to set.
* @return the QueryInboundNatRulePortMappingRequest object itself.
*/
public QueryInboundNatRulePortMappingRequest withIpConfiguration(SubResource ipConfiguration) {
this.ipConfiguration = ipConfiguration;
return this;
}
/**
* Get the ipAddress property: IP address set in load balancer backend address.
*
* @return the ipAddress value.
*/
public String ipAddress() {
return this.ipAddress;
}
/**
* Set the ipAddress property: IP address set in load balancer backend address.
*
* @param ipAddress the ipAddress value to set.
* @return the QueryInboundNatRulePortMappingRequest object itself.
*/
public QueryInboundNatRulePortMappingRequest withIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}