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 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

      public String address()
      Get the address property: The address of the filter item.
      Returns:
      the address value.
    • withAddress

      public ConnectionMonitorEndpointFilterItem withAddress(String address)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.