Class ConnectionMonitorEndpointScope

java.lang.Object
com.azure.resourcemanager.network.models.ConnectionMonitorEndpointScope
All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectionMonitorEndpointScope>

public final class ConnectionMonitorEndpointScope extends Object implements com.azure.json.JsonSerializable<ConnectionMonitorEndpointScope>
Describes the connection monitor endpoint scope.
  • Constructor Details

    • ConnectionMonitorEndpointScope

      public ConnectionMonitorEndpointScope()
      Creates an instance of ConnectionMonitorEndpointScope class.
  • Method Details

    • include

      Get the include property: List of items which needs to be included to the endpoint scope.
      Returns:
      the include value.
    • withInclude

      Set the include property: List of items which needs to be included to the endpoint scope.
      Parameters:
      include - the include value to set.
      Returns:
      the ConnectionMonitorEndpointScope object itself.
    • exclude

      Get the exclude property: List of items which needs to be excluded from the endpoint scope.
      Returns:
      the exclude value.
    • withExclude

      Set the exclude property: List of items which needs to be excluded from the endpoint scope.
      Parameters:
      exclude - the exclude value to set.
      Returns:
      the ConnectionMonitorEndpointScope 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<ConnectionMonitorEndpointScope>
      Throws:
      IOException
    • fromJson

      public static ConnectionMonitorEndpointScope fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ConnectionMonitorEndpointScope from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ConnectionMonitorEndpointScope 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 ConnectionMonitorEndpointScope.