Class ConnectionMonitorResultProperties
java.lang.Object
com.azure.resourcemanager.network.fluent.models.ConnectionMonitorParameters
com.azure.resourcemanager.network.fluent.models.ConnectionMonitorResultProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectionMonitorParameters>
Describes the properties of a connection monitor.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConnectionMonitorResultProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the connectionMonitorType property: Type of connection monitor.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectionMonitorResultProperties from the JsonReader.Get the monitoringStatus property: The monitoring status of the connection monitor.Get the provisioningState property: The provisioning state of the connection monitor.Get the startTime property: The date and time when the connection monitor was started.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 com.azure.resourcemanager.network.fluent.models.ConnectionMonitorParameters
autoStart, destination, endpoints, monitoringIntervalInSeconds, notes, outputs, source, testConfigurations, testGroupsMethods 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
-
ConnectionMonitorResultProperties
public ConnectionMonitorResultProperties()Creates an instance of ConnectionMonitorResultProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: The provisioning state of the connection monitor.- Returns:
- the provisioningState value.
-
startTime
Get the startTime property: The date and time when the connection monitor was started.- Returns:
- the startTime value.
-
monitoringStatus
Get the monitoringStatus property: The monitoring status of the connection monitor.- Returns:
- the monitoringStatus value.
-
connectionMonitorType
Get the connectionMonitorType property: Type of connection monitor.- Returns:
- the connectionMonitorType value.
-
withSource
Set the source property: Describes the source of connection monitor.- Overrides:
withSourcein classConnectionMonitorParameters- Parameters:
source- the source value to set.- Returns:
- the ConnectionMonitorParameters object itself.
-
withDestination
Set the destination property: Describes the destination of connection monitor.- Overrides:
withDestinationin classConnectionMonitorParameters- Parameters:
destination- the destination value to set.- Returns:
- the ConnectionMonitorParameters object itself.
-
withAutoStart
Set the autoStart property: Determines if the connection monitor will start automatically once created.- Overrides:
withAutoStartin classConnectionMonitorParameters- Parameters:
autoStart- the autoStart value to set.- Returns:
- the ConnectionMonitorParameters object itself.
-
withMonitoringIntervalInSeconds
public ConnectionMonitorResultProperties withMonitoringIntervalInSeconds(Integer monitoringIntervalInSeconds) Set the monitoringIntervalInSeconds property: Monitoring interval in seconds.- Overrides:
withMonitoringIntervalInSecondsin classConnectionMonitorParameters- Parameters:
monitoringIntervalInSeconds- the monitoringIntervalInSeconds value to set.- Returns:
- the ConnectionMonitorParameters object itself.
-
withEndpoints
Set the endpoints property: List of connection monitor endpoints.- Overrides:
withEndpointsin classConnectionMonitorParameters- Parameters:
endpoints- the endpoints value to set.- Returns:
- the ConnectionMonitorParameters object itself.
-
withTestConfigurations
public ConnectionMonitorResultProperties withTestConfigurations(List<ConnectionMonitorTestConfiguration> testConfigurations) Set the testConfigurations property: List of connection monitor test configurations.- Overrides:
withTestConfigurationsin classConnectionMonitorParameters- Parameters:
testConfigurations- the testConfigurations value to set.- Returns:
- the ConnectionMonitorParameters object itself.
-
withTestGroups
public ConnectionMonitorResultProperties withTestGroups(List<ConnectionMonitorTestGroup> testGroups) Set the testGroups property: List of connection monitor test groups.- Overrides:
withTestGroupsin classConnectionMonitorParameters- Parameters:
testGroups- the testGroups value to set.- Returns:
- the ConnectionMonitorParameters object itself.
-
withOutputs
Set the outputs property: List of connection monitor outputs.- Overrides:
withOutputsin classConnectionMonitorParameters- Parameters:
outputs- the outputs value to set.- Returns:
- the ConnectionMonitorParameters object itself.
-
withNotes
Set the notes property: Optional notes to be associated with the connection monitor.- Overrides:
withNotesin classConnectionMonitorParameters- Parameters:
notes- the notes value to set.- Returns:
- the ConnectionMonitorParameters object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classConnectionMonitorParameters- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ConnectionMonitorParameters>- Overrides:
toJsonin classConnectionMonitorParameters- Throws:
IOException
-
fromJson
public static ConnectionMonitorResultProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ConnectionMonitorResultProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ConnectionMonitorResultProperties 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 ConnectionMonitorResultProperties.
-