Class ConnectionMonitorParameters
java.lang.Object
com.azure.resourcemanager.network.fluent.models.ConnectionMonitorParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectionMonitorParameters>
- Direct Known Subclasses:
ConnectionMonitorResultProperties
public class ConnectionMonitorParameters
extends Object
implements com.azure.json.JsonSerializable<ConnectionMonitorParameters>
Parameters that define the operation to create a connection monitor.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConnectionMonitorParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the autoStart property: Determines if the connection monitor will start automatically once created.Get the destination property: Describes the destination of connection monitor.Get the endpoints property: List of connection monitor endpoints.static ConnectionMonitorParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectionMonitorParameters from the JsonReader.Get the monitoringIntervalInSeconds property: Monitoring interval in seconds.notes()Get the notes property: Optional notes to be associated with the connection monitor.outputs()Get the outputs property: List of connection monitor outputs.source()Get the source property: Describes the source of connection monitor.Get the testConfigurations property: List of connection monitor test configurations.Get the testGroups property: List of connection monitor test groups.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAutoStart(Boolean autoStart) Set the autoStart property: Determines if the connection monitor will start automatically once created.withDestination(ConnectionMonitorDestination destination) Set the destination property: Describes the destination of connection monitor.withEndpoints(List<ConnectionMonitorEndpoint> endpoints) Set the endpoints property: List of connection monitor endpoints.withMonitoringIntervalInSeconds(Integer monitoringIntervalInSeconds) Set the monitoringIntervalInSeconds property: Monitoring interval in seconds.Set the notes property: Optional notes to be associated with the connection monitor.withOutputs(List<ConnectionMonitorOutput> outputs) Set the outputs property: List of connection monitor outputs.withSource(ConnectionMonitorSource source) Set the source property: Describes the source of connection monitor.withTestConfigurations(List<ConnectionMonitorTestConfiguration> testConfigurations) Set the testConfigurations property: List of connection monitor test configurations.withTestGroups(List<ConnectionMonitorTestGroup> testGroups) Set the testGroups property: List of connection monitor test groups.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
-
ConnectionMonitorParameters
public ConnectionMonitorParameters()Creates an instance of ConnectionMonitorParameters class.
-
-
Method Details
-
source
Get the source property: Describes the source of connection monitor.- Returns:
- the source value.
-
withSource
Set the source property: Describes the source of connection monitor.- Parameters:
source- the source value to set.- Returns:
- the ConnectionMonitorParameters object itself.
-
destination
Get the destination property: Describes the destination of connection monitor.- Returns:
- the destination value.
-
withDestination
Set the destination property: Describes the destination of connection monitor.- Parameters:
destination- the destination value to set.- Returns:
- the ConnectionMonitorParameters object itself.
-
autoStart
Get the autoStart property: Determines if the connection monitor will start automatically once created.- Returns:
- the autoStart value.
-
withAutoStart
Set the autoStart property: Determines if the connection monitor will start automatically once created.- Parameters:
autoStart- the autoStart value to set.- Returns:
- the ConnectionMonitorParameters object itself.
-
monitoringIntervalInSeconds
Get the monitoringIntervalInSeconds property: Monitoring interval in seconds.- Returns:
- the monitoringIntervalInSeconds value.
-
withMonitoringIntervalInSeconds
public ConnectionMonitorParameters withMonitoringIntervalInSeconds(Integer monitoringIntervalInSeconds) Set the monitoringIntervalInSeconds property: Monitoring interval in seconds.- Parameters:
monitoringIntervalInSeconds- the monitoringIntervalInSeconds value to set.- Returns:
- the ConnectionMonitorParameters object itself.
-
endpoints
Get the endpoints property: List of connection monitor endpoints.- Returns:
- the endpoints value.
-
withEndpoints
Set the endpoints property: List of connection monitor endpoints.- Parameters:
endpoints- the endpoints value to set.- Returns:
- the ConnectionMonitorParameters object itself.
-
testConfigurations
Get the testConfigurations property: List of connection monitor test configurations.- Returns:
- the testConfigurations value.
-
withTestConfigurations
public ConnectionMonitorParameters withTestConfigurations(List<ConnectionMonitorTestConfiguration> testConfigurations) Set the testConfigurations property: List of connection monitor test configurations.- Parameters:
testConfigurations- the testConfigurations value to set.- Returns:
- the ConnectionMonitorParameters object itself.
-
testGroups
Get the testGroups property: List of connection monitor test groups.- Returns:
- the testGroups value.
-
withTestGroups
Set the testGroups property: List of connection monitor test groups.- Parameters:
testGroups- the testGroups value to set.- Returns:
- the ConnectionMonitorParameters object itself.
-
outputs
Get the outputs property: List of connection monitor outputs.- Returns:
- the outputs value.
-
withOutputs
Set the outputs property: List of connection monitor outputs.- Parameters:
outputs- the outputs value to set.- Returns:
- the ConnectionMonitorParameters object itself.
-
notes
Get the notes property: Optional notes to be associated with the connection monitor.- Returns:
- the notes value.
-
withNotes
Set the notes property: Optional notes to be associated with the connection monitor.- Parameters:
notes- the notes value to set.- Returns:
- the ConnectionMonitorParameters 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<ConnectionMonitorParameters>- Throws:
IOException
-
fromJson
public static ConnectionMonitorParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ConnectionMonitorParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ConnectionMonitorParameters 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 ConnectionMonitorParameters.
-