Class VirtualHubRouteTableV2Properties
java.lang.Object
com.azure.resourcemanager.network.fluent.models.VirtualHubRouteTableV2Properties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualHubRouteTableV2Properties>
public final class VirtualHubRouteTableV2Properties
extends Object
implements com.azure.json.JsonSerializable<VirtualHubRouteTableV2Properties>
Parameters for VirtualHubRouteTableV2.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualHubRouteTableV2Properties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the attachedConnections property: List of all connections attached to this route table v2.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualHubRouteTableV2Properties from the JsonReader.Get the provisioningState property: The provisioning state of the virtual hub route table v2 resource.routes()Get the routes property: List of all routes.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAttachedConnections(List<String> attachedConnections) Set the attachedConnections property: List of all connections attached to this route table v2.withRoutes(List<VirtualHubRouteV2> routes) Set the routes property: List of all routes.Methods inherited from class java.lang.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
-
VirtualHubRouteTableV2Properties
public VirtualHubRouteTableV2Properties()Creates an instance of VirtualHubRouteTableV2Properties class.
-
-
Method Details
-
routes
Get the routes property: List of all routes.- Returns:
- the routes value.
-
withRoutes
Set the routes property: List of all routes.- Parameters:
routes- the routes value to set.- Returns:
- the VirtualHubRouteTableV2Properties object itself.
-
attachedConnections
Get the attachedConnections property: List of all connections attached to this route table v2.- Returns:
- the attachedConnections value.
-
withAttachedConnections
Set the attachedConnections property: List of all connections attached to this route table v2.- Parameters:
attachedConnections- the attachedConnections value to set.- Returns:
- the VirtualHubRouteTableV2Properties object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of the virtual hub route table v2 resource.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VirtualHubRouteTableV2Properties>- Throws:
IOException
-
fromJson
public static VirtualHubRouteTableV2Properties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualHubRouteTableV2Properties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualHubRouteTableV2Properties 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 VirtualHubRouteTableV2Properties.
-