VirtualNetworkConnectionGatewayReference Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.VirtualNetworkConnectionGatewayReference

Implements

public final class VirtualNetworkConnectionGatewayReference
implements JsonSerializable<VirtualNetworkConnectionGatewayReference>

A reference to VirtualNetworkGateway or LocalNetworkGateway resource.

Method Summary

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

Reads an instance of VirtualNetworkConnectionGatewayReference from the JsonReader.

String id()

Get the id property: The ID of VirtualNetworkGateway or LocalNetworkGateway resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

fromJson

public static VirtualNetworkConnectionGatewayReference fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkConnectionGatewayReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualNetworkConnectionGatewayReference 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.

id

public String id()

Get the id property: The ID of VirtualNetworkGateway or LocalNetworkGateway resource.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to