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