Class EffectiveRoutesParameters
java.lang.Object
com.azure.resourcemanager.network.models.EffectiveRoutesParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EffectiveRoutesParameters>
public final class EffectiveRoutesParameters
extends Object
implements com.azure.json.JsonSerializable<EffectiveRoutesParameters>
The parameters specifying the resource whose effective routes are being requested.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EffectiveRoutesParameters class. -
Method Summary
Modifier and TypeMethodDescriptionstatic EffectiveRoutesParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EffectiveRoutesParameters from the JsonReader.Get the resourceId property: The resource whose effective routes are being requested.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the virtualWanResourceType property: The type of the specified resource like RouteTable, ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection.withResourceId(String resourceId) Set the resourceId property: The resource whose effective routes are being requested.withVirtualWanResourceType(String virtualWanResourceType) Set the virtualWanResourceType property: The type of the specified resource like RouteTable, ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection.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
-
EffectiveRoutesParameters
public EffectiveRoutesParameters()Creates an instance of EffectiveRoutesParameters class.
-
-
Method Details
-
resourceId
Get the resourceId property: The resource whose effective routes are being requested.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: The resource whose effective routes are being requested.- Parameters:
resourceId- the resourceId value to set.- Returns:
- the EffectiveRoutesParameters object itself.
-
virtualWanResourceType
Get the virtualWanResourceType property: The type of the specified resource like RouteTable, ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection.- Returns:
- the virtualWanResourceType value.
-
withVirtualWanResourceType
Set the virtualWanResourceType property: The type of the specified resource like RouteTable, ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection.- Parameters:
virtualWanResourceType- the virtualWanResourceType value to set.- Returns:
- the EffectiveRoutesParameters 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<EffectiveRoutesParameters>- Throws:
IOException
-
fromJson
public static EffectiveRoutesParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EffectiveRoutesParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EffectiveRoutesParameters 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 EffectiveRoutesParameters.
-