VirtualNetworkLinkPatch Class

  • java.lang.Object
    • com.azure.resourcemanager.dnsresolver.models.VirtualNetworkLinkPatch

Implements

public final class VirtualNetworkLinkPatch
implements JsonSerializable<VirtualNetworkLinkPatch>

Describes a virtual network link for PATCH operation.

Constructor Summary

Constructor Description
VirtualNetworkLinkPatch()

Creates an instance of VirtualNetworkLinkPatch class.

Method Summary

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

Reads an instance of VirtualNetworkLinkPatch from the JsonReader.

Map<String,String> metadata()

Get the metadata property: Metadata attached to the virtual network link.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualNetworkLinkPatch withMetadata(Map<String,String> metadata)

Set the metadata property: Metadata attached to the virtual network link.

Methods inherited from java.lang.Object

Constructor Details

VirtualNetworkLinkPatch

public VirtualNetworkLinkPatch()

Creates an instance of VirtualNetworkLinkPatch class.

Method Details

fromJson

public static VirtualNetworkLinkPatch fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkLinkPatch from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the VirtualNetworkLinkPatch.

metadata

public Map<String,String> metadata()

Get the metadata property: Metadata attached to the virtual network link.

Returns:

the metadata value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMetadata

public VirtualNetworkLinkPatch withMetadata(Map<String,String> metadata)

Set the metadata property: Metadata attached to the virtual network link.

Parameters:

metadata - the metadata value to set.

Returns:

the VirtualNetworkLinkPatch object itself.

Applies to