Class ConnectionMonitorEndpointScope
java.lang.Object
com.azure.resourcemanager.network.models.ConnectionMonitorEndpointScope
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectionMonitorEndpointScope>
public final class ConnectionMonitorEndpointScope
extends Object
implements com.azure.json.JsonSerializable<ConnectionMonitorEndpointScope>
Describes the connection monitor endpoint scope.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ConnectionMonitorEndpointScope class. -
Method Summary
Modifier and TypeMethodDescriptionexclude()
Get the exclude property: List of items which needs to be excluded from the endpoint scope.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectionMonitorEndpointScope from the JsonReader.include()
Get the include property: List of items which needs to be included to the endpoint scope.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the exclude property: List of items which needs to be excluded from the endpoint scope.Set the include property: List of items which needs to be included to the endpoint scope.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
-
ConnectionMonitorEndpointScope
public ConnectionMonitorEndpointScope()Creates an instance of ConnectionMonitorEndpointScope class.
-
-
Method Details
-
include
Get the include property: List of items which needs to be included to the endpoint scope.- Returns:
- the include value.
-
withInclude
Set the include property: List of items which needs to be included to the endpoint scope.- Parameters:
include
- the include value to set.- Returns:
- the ConnectionMonitorEndpointScope object itself.
-
exclude
Get the exclude property: List of items which needs to be excluded from the endpoint scope.- Returns:
- the exclude value.
-
withExclude
Set the exclude property: List of items which needs to be excluded from the endpoint scope.- Parameters:
exclude
- the exclude value to set.- Returns:
- the ConnectionMonitorEndpointScope 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<ConnectionMonitorEndpointScope>
- Throws:
IOException
-
fromJson
public static ConnectionMonitorEndpointScope fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ConnectionMonitorEndpointScope from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ConnectionMonitorEndpointScope 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 ConnectionMonitorEndpointScope.
-