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 Summary
ConstructorsConstructorDescriptionCreates an instance of ConnectionMonitorTestGroup class. -
Method Summary
Modifier and TypeMethodDescriptionGet the destinations property: List of destination endpoint names.disable()Get the disable property: Value indicating whether test group is disabled.static ConnectionMonitorTestGroupfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectionMonitorTestGroup from the JsonReader.name()Get the name property: The name of the connection monitor test group.sources()Get the sources property: List of source endpoint names.Get the testConfigurations property: List of test configuration names.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDestinations(List<String> destinations) Set the destinations property: List of destination endpoint names.withDisable(Boolean disable) Set the disable property: Value indicating whether test group is disabled.Set the name property: The name of the connection monitor test group.withSources(List<String> sources) Set the sources property: List of source endpoint names.withTestConfigurations(List<String> testConfigurations) Set the testConfigurations property: List of test configuration names.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
-
ConnectionMonitorTestGroup
public ConnectionMonitorTestGroup()Creates an instance of ConnectionMonitorTestGroup class.
-
-
Method Details
-
name
Get the name property: The name of the connection monitor test group.- Returns:
- the name value.
-
withName
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
Get the disable property: Value indicating whether test group is disabled.- Returns:
- the disable value.
-
withDisable
Set the disable property: Value indicating whether test group is disabled.- Parameters:
disable- the disable value to set.- Returns:
- the ConnectionMonitorTestGroup object itself.
-
testConfigurations
Get the testConfigurations property: List of test configuration names.- Returns:
- the testConfigurations value.
-
withTestConfigurations
Set the testConfigurations property: List of test configuration names.- Parameters:
testConfigurations- the testConfigurations value to set.- Returns:
- the ConnectionMonitorTestGroup object itself.
-
sources
Get the sources property: List of source endpoint names.- Returns:
- the sources value.
-
withSources
Set the sources property: List of source endpoint names.- Parameters:
sources- the sources value to set.- Returns:
- the ConnectionMonitorTestGroup object itself.
-
destinations
Get the destinations property: List of destination endpoint names.- Returns:
- the destinations value.
-
withDestinations
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
- Specified by:
toJsonin interfacecom.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.
-