Class ConnectionMonitorTestGroup

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

public final class ConnectionMonitorTestGroup extends Object implements com.azure.json.JsonSerializable<ConnectionMonitorTestGroup>
Describes the connection monitor test group.
  • Constructor Details

    • ConnectionMonitorTestGroup

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

    • name

      public String name()
      Get the name property: The name of the connection monitor test group.
      Returns:
      the name value.
    • withName

      public ConnectionMonitorTestGroup withName(String name)
      Set the name property: The name of the connection monitor test group.
      Parameters:
      name - the name value to set.
      Returns:
      the ConnectionMonitorTestGroup object itself.
    • disable

      public Boolean disable()
      Get the disable property: Value indicating whether test group is disabled.
      Returns:
      the disable value.
    • withDisable

      public ConnectionMonitorTestGroup withDisable(Boolean disable)
      Set the disable property: Value indicating whether test group is disabled.
      Parameters:
      disable - the disable value to set.
      Returns:
      the ConnectionMonitorTestGroup object itself.
    • testConfigurations

      public List<String> testConfigurations()
      Get the testConfigurations property: List of test configuration names.
      Returns:
      the testConfigurations value.
    • withTestConfigurations

      public ConnectionMonitorTestGroup withTestConfigurations(List<String> testConfigurations)
      Set the testConfigurations property: List of test configuration names.
      Parameters:
      testConfigurations - the testConfigurations value to set.
      Returns:
      the ConnectionMonitorTestGroup object itself.
    • sources

      public List<String> sources()
      Get the sources property: List of source endpoint names.
      Returns:
      the sources value.
    • withSources

      public ConnectionMonitorTestGroup withSources(List<String> sources)
      Set the sources property: List of source endpoint names.
      Parameters:
      sources - the sources value to set.
      Returns:
      the ConnectionMonitorTestGroup object itself.
    • destinations

      public List<String> destinations()
      Get the destinations property: List of destination endpoint names.
      Returns:
      the destinations value.
    • withDestinations

      public ConnectionMonitorTestGroup withDestinations(List<String> destinations)
      Set the destinations property: List of destination endpoint names.
      Parameters:
      destinations - the destinations value to set.
      Returns:
      the ConnectionMonitorTestGroup 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<ConnectionMonitorTestGroup>
      Throws:
      IOException
    • fromJson

      public static ConnectionMonitorTestGroup fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ConnectionMonitorTestGroup from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ConnectionMonitorTestGroup if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ConnectionMonitorTestGroup.