Class ConnectionMonitorOutput
java.lang.Object
com.azure.resourcemanager.network.models.ConnectionMonitorOutput
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectionMonitorOutput>
public final class ConnectionMonitorOutput
extends Object
implements com.azure.json.JsonSerializable<ConnectionMonitorOutput>
Describes a connection monitor output destination.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ConnectionMonitorOutput class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionMonitorOutput
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectionMonitorOutput from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: Connection monitor output destination type.void
validate()
Validates the instance.withType
(OutputType type) Set the type property: Connection monitor output destination type.withWorkspaceSettings
(ConnectionMonitorWorkspaceSettings workspaceSettings) Set the workspaceSettings property: Describes the settings for producing output into a log analytics workspace.Get the workspaceSettings property: Describes the settings for producing output into a log analytics workspace.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ConnectionMonitorOutput
public ConnectionMonitorOutput()Creates an instance of ConnectionMonitorOutput class.
-
-
Method Details
-
type
Get the type property: Connection monitor output destination type. Currently, only "Workspace" is supported.- Returns:
- the type value.
-
withType
Set the type property: Connection monitor output destination type. Currently, only "Workspace" is supported.- Parameters:
type
- the type value to set.- Returns:
- the ConnectionMonitorOutput object itself.
-
workspaceSettings
Get the workspaceSettings property: Describes the settings for producing output into a log analytics workspace.- Returns:
- the workspaceSettings value.
-
withWorkspaceSettings
public ConnectionMonitorOutput withWorkspaceSettings(ConnectionMonitorWorkspaceSettings workspaceSettings) Set the workspaceSettings property: Describes the settings for producing output into a log analytics workspace.- Parameters:
workspaceSettings
- the workspaceSettings value to set.- Returns:
- the ConnectionMonitorOutput object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ConnectionMonitorOutput>
- Throws:
IOException
-
fromJson
public static ConnectionMonitorOutput fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ConnectionMonitorOutput from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ConnectionMonitorOutput 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 ConnectionMonitorOutput.
-