Class PropagatedRouteTable
java.lang.Object
com.azure.resourcemanager.network.models.PropagatedRouteTable
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PropagatedRouteTable>
public final class PropagatedRouteTable
extends Object
implements com.azure.json.JsonSerializable<PropagatedRouteTable>
The list of RouteTables to advertise the routes to.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PropagatedRouteTablefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PropagatedRouteTable from the JsonReader.List<com.azure.core.management.SubResource> ids()Get the ids property: The list of resource ids of all the RouteTables.labels()Get the labels property: The list of labels.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the ids property: The list of resource ids of all the RouteTables.withLabels(List<String> labels) Set the labels property: The list of labels.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
-
PropagatedRouteTable
public PropagatedRouteTable()Creates an instance of PropagatedRouteTable class.
-
-
Method Details
-
labels
Get the labels property: The list of labels.- Returns:
- the labels value.
-
withLabels
Set the labels property: The list of labels.- Parameters:
labels- the labels value to set.- Returns:
- the PropagatedRouteTable object itself.
-
ids
Get the ids property: The list of resource ids of all the RouteTables.- Returns:
- the ids value.
-
withIds
Set the ids property: The list of resource ids of all the RouteTables.- Parameters:
ids- the ids value to set.- Returns:
- the PropagatedRouteTable 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<PropagatedRouteTable>- Throws:
IOException
-
fromJson
public static PropagatedRouteTable fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PropagatedRouteTable from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PropagatedRouteTable 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 PropagatedRouteTable.
-