Class VirtualEndpointResourceProperties

java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.VirtualEndpointResourceProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualEndpointResourceProperties>

public final class VirtualEndpointResourceProperties extends Object implements com.azure.json.JsonSerializable<VirtualEndpointResourceProperties>
Properties of a pair of virtual endpoints.
  • Constructor Details

    • VirtualEndpointResourceProperties

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

    • endpointType

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

      public VirtualEndpointResourceProperties withEndpointType(VirtualEndpointType endpointType)
      Set the endpointType property: Type of endpoint for the virtual endpoints.
      Parameters:
      endpointType - the endpointType value to set.
      Returns:
      the VirtualEndpointResourceProperties 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 VirtualEndpointResourceProperties 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 VirtualEndpointResourceProperties 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<VirtualEndpointResourceProperties>
      Throws:
      IOException
    • fromJson

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