ConnectionMonitorTestGroup Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ConnectionMonitorTestGroup

Implements

public final class ConnectionMonitorTestGroup
implements JsonSerializable<ConnectionMonitorTestGroup>

Describes the connection monitor test group.

Constructor Summary

Constructor Description
ConnectionMonitorTestGroup()

Creates an instance of ConnectionMonitorTestGroup class.

Method Summary

Modifier and Type Method and Description
List<String> destinations()

Get the destinations property: List of destination endpoint names.

Boolean disable()

Get the disable property: Value indicating whether test group is disabled.

static ConnectionMonitorTestGroup fromJson(JsonReader jsonReader)

Reads an instance of ConnectionMonitorTestGroup from the JsonReader.

String name()

Get the name property: The name of the connection monitor test group.

List<String> sources()

Get the sources property: List of source endpoint names.

List<String> testConfigurations()

Get the testConfigurations property: List of test configuration names.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ConnectionMonitorTestGroup withDestinations(List<String> destinations)

Set the destinations property: List of destination endpoint names.

ConnectionMonitorTestGroup withDisable(Boolean disable)

Set the disable property: Value indicating whether test group is disabled.

ConnectionMonitorTestGroup withName(String name)

Set the name property: The name of the connection monitor test group.

ConnectionMonitorTestGroup withSources(List<String> sources)

Set the sources property: List of source endpoint names.

ConnectionMonitorTestGroup withTestConfigurations(List<String> testConfigurations)

Set the testConfigurations property: List of test configuration names.

Methods inherited from java.lang.Object

Constructor Details

ConnectionMonitorTestGroup

public ConnectionMonitorTestGroup()

Creates an instance of ConnectionMonitorTestGroup class.

Method Details

destinations

public List destinations()

Get the destinations property: List of destination endpoint names.

Returns:

the destinations value.

disable

public Boolean disable()

Get the disable property: Value indicating whether test group is disabled.

Returns:

the disable value.

fromJson

public static ConnectionMonitorTestGroup fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

name

public String name()

Get the name property: The name of the connection monitor test group.

Returns:

the name value.

sources

public List sources()

Get the sources property: List of source endpoint names.

Returns:

the sources value.

testConfigurations

public List testConfigurations()

Get the testConfigurations property: List of test configuration names.

Returns:

the testConfigurations value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDestinations

public ConnectionMonitorTestGroup withDestinations(List destinations)

Set the destinations property: List of destination endpoint names.

Parameters:

destinations - the destinations value to set.

Returns:

the ConnectionMonitorTestGroup object itself.

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.

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.

withSources

public ConnectionMonitorTestGroup withSources(List sources)

Set the sources property: List of source endpoint names.

Parameters:

sources - the sources value to set.

Returns:

the ConnectionMonitorTestGroup object itself.

withTestConfigurations

public ConnectionMonitorTestGroup withTestConfigurations(List testConfigurations)

Set the testConfigurations property: List of test configuration names.

Parameters:

testConfigurations - the testConfigurations value to set.

Returns:

the ConnectionMonitorTestGroup object itself.

Applies to