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

    Constructors
    Constructor
    Description
    Creates an instance of GetOutboundRoutesParameters class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the connectionType property: The type of the specified connection resource like ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection.
    fromJson(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.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    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, wait

    Methods 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

      public String resourceUri()
      Get the resourceUri property: The connection resource whose outbound routes are being requested.
      Returns:
      the resourceUri value.
    • withResourceUri

      public GetOutboundRoutesParameters withResourceUri(String resourceUri)
      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

      public String connectionType()
      Get the connectionType property: The type of the specified connection resource like ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection.
      Returns:
      the connectionType value.
    • withConnectionType

      public GetOutboundRoutesParameters withConnectionType(String connectionType)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.