Class ConnectionMonitorEndpointFilterItem
java.lang.Object
com.azure.resourcemanager.network.models.ConnectionMonitorEndpointFilterItem
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectionMonitorEndpointFilterItem>
public final class ConnectionMonitorEndpointFilterItem
extends Object
implements com.azure.json.JsonSerializable<ConnectionMonitorEndpointFilterItem>
Describes the connection monitor endpoint filter item.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConnectionMonitorEndpointFilterItem class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Get the address property: The address of the filter item.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectionMonitorEndpointFilterItem from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of item included in the filter.voidvalidate()Validates the instance.withAddress(String address) Set the address property: The address of the filter item.Set the type property: The type of item included in the filter.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
-
ConnectionMonitorEndpointFilterItem
public ConnectionMonitorEndpointFilterItem()Creates an instance of ConnectionMonitorEndpointFilterItem class.
-
-
Method Details
-
type
Get the type property: The type of item included in the filter. Currently only 'AgentAddress' is supported.- Returns:
- the type value.
-
withType
Set the type property: The type of item included in the filter. Currently only 'AgentAddress' is supported.- Parameters:
type- the type value to set.- Returns:
- the ConnectionMonitorEndpointFilterItem object itself.
-
address
Get the address property: The address of the filter item.- Returns:
- the address value.
-
withAddress
Set the address property: The address of the filter item.- Parameters:
address- the address value to set.- Returns:
- the ConnectionMonitorEndpointFilterItem 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<ConnectionMonitorEndpointFilterItem>- Throws:
IOException
-
fromJson
public static ConnectionMonitorEndpointFilterItem fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ConnectionMonitorEndpointFilterItem from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ConnectionMonitorEndpointFilterItem 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 ConnectionMonitorEndpointFilterItem.
-