Class VirtualEndpointResourceForPatch

java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.VirtualEndpointResourceForPatch
All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualEndpointResourceForPatch>
Direct Known Subclasses:
VirtualEndpointInner

public class VirtualEndpointResourceForPatch extends Object implements com.azure.json.JsonSerializable<VirtualEndpointResourceForPatch>
Pair of virtual endpoints for a server.
  • Constructor Details

    • VirtualEndpointResourceForPatch

      public VirtualEndpointResourceForPatch()
      Creates an instance of VirtualEndpointResourceForPatch class.
  • Method Details

    • endpointType

      public VirtualEndpointType endpointType()
      Get the endpointType property: Type of endpoint for the virtual endpoints.
      Returns:
      the endpointType value.
    • withEndpointType

      public VirtualEndpointResourceForPatch withEndpointType(VirtualEndpointType endpointType)
      Set the endpointType property: Type of endpoint for the virtual endpoints.
      Parameters:
      endpointType - the endpointType value to set.
      Returns:
      the VirtualEndpointResourceForPatch object itself.
    • members

      public List<String> members()
      Get the members property: List of servers that one of the virtual endpoints can refer to.
      Returns:
      the members value.
    • withMembers

      public VirtualEndpointResourceForPatch withMembers(List<String> members)
      Set the members property: List of servers that one of the virtual endpoints can refer to.
      Parameters:
      members - the members value to set.
      Returns:
      the VirtualEndpointResourceForPatch object itself.
    • virtualEndpoints

      public List<String> virtualEndpoints()
      Get the virtualEndpoints property: List of virtual endpoints for a server.
      Returns:
      the virtualEndpoints value.
    • 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<VirtualEndpointResourceForPatch>
      Throws:
      IOException
    • fromJson

      public static VirtualEndpointResourceForPatch fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VirtualEndpointResourceForPatch from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VirtualEndpointResourceForPatch 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 VirtualEndpointResourceForPatch.