Class CircuitMetadataMap
java.lang.Object
com.azure.resourcemanager.network.models.CircuitMetadataMap
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CircuitMetadataMap>
public final class CircuitMetadataMap
extends Object
implements com.azure.json.JsonSerializable<CircuitMetadataMap>
The CircuitMetadataMap model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CircuitMetadataMapfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CircuitMetadataMap from the JsonReader.link()Get the link property: Link to the Express Route circuit.location()Get the location property: Peering location of the Express Route Circuit.name()Get the name property: Express Route Circuit Name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the link property: Link to the Express Route circuit.withLocation(String location) Set the location property: Peering location of the Express Route Circuit.Set the name property: Express Route Circuit Name.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CircuitMetadataMap
public CircuitMetadataMap()Creates an instance of CircuitMetadataMap class.
-
-
Method Details
-
name
-
withName
Set the name property: Express Route Circuit Name.- Parameters:
name- the name value to set.- Returns:
- the CircuitMetadataMap object itself.
-
link
Get the link property: Link to the Express Route circuit.- Returns:
- the link value.
-
withLink
Set the link property: Link to the Express Route circuit.- Parameters:
link- the link value to set.- Returns:
- the CircuitMetadataMap object itself.
-
location
Get the location property: Peering location of the Express Route Circuit.- Returns:
- the location value.
-
withLocation
Set the location property: Peering location of the Express Route Circuit.- Parameters:
location- the location value to set.- Returns:
- the CircuitMetadataMap object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CircuitMetadataMap>- Throws:
IOException
-
fromJson
Reads an instance of CircuitMetadataMap from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CircuitMetadataMap 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 CircuitMetadataMap.
-