Share via


LoadBalancerNatRuleReference Class

public final class LoadBalancerNatRuleReference
extends ProxyResourceReference

Defines reference to load balancer NAT rules.

Constructor Summary

Constructor Description
LoadBalancerNatRuleReference()

Creates an instance of LoadBalancerNatRuleReference class.

Method Summary

Modifier and Type Method and Description
static LoadBalancerNatRuleReference fromJson(JsonReader jsonReader)

Reads an instance of LoadBalancerNatRuleReference from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LoadBalancerNatRuleReference withName(String name)

Set the name property: Gets the name of the proxy resource on the target side.

LoadBalancerNatRuleReference withSourceArmResourceId(String sourceArmResourceId)

Set the sourceArmResourceId property: Gets the ARM resource ID of the tracked resource being referenced.

Methods inherited from AzureResourceReference

Methods inherited from ProxyResourceReference

Methods inherited from java.lang.Object

Constructor Details

LoadBalancerNatRuleReference

public LoadBalancerNatRuleReference()

Creates an instance of LoadBalancerNatRuleReference class.

Method Details

fromJson

public static LoadBalancerNatRuleReference fromJson(JsonReader jsonReader)

Reads an instance of LoadBalancerNatRuleReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LoadBalancerNatRuleReference if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

LoadBalancerNatRuleReference.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

LoadBalancerNatRuleReference.validate()

withName

public LoadBalancerNatRuleReference withName(String name)

Set the name property: Gets the name of the proxy resource on the target side.

Overrides:

LoadBalancerNatRuleReference.withName(String name)

Parameters:

name

withSourceArmResourceId

public LoadBalancerNatRuleReference withSourceArmResourceId(String sourceArmResourceId)

Set the sourceArmResourceId property: Gets the ARM resource ID of the tracked resource being referenced.

Overrides:

LoadBalancerNatRuleReference.withSourceArmResourceId(String sourceArmResourceId)

Parameters:

sourceArmResourceId

Applies to