Class VirtualEndpointInner

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

public final class VirtualEndpointInner extends VirtualEndpointResourceForPatch
Pair of virtual endpoints for a server.
  • Constructor Details

    • VirtualEndpointInner

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

    • id

      public String id()
      Get the id property: Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}".
      Returns:
      the id value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Returns:
      the name value.
    • type

      public String type()
      Get the type property: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
      Returns:
      the type value.
    • systemData

      public com.azure.core.management.SystemData systemData()
      Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
      Returns:
      the systemData value.
    • endpointType

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

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

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

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

      public List<String> virtualEndpoints()
      Get the virtualEndpoints property: List of virtual endpoints for a server.
      Overrides:
      virtualEndpoints in class VirtualEndpointResourceForPatch
      Returns:
      the virtualEndpoints value.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class VirtualEndpointResourceForPatch
      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>
      Overrides:
      toJson in class VirtualEndpointResourceForPatch
      Throws:
      IOException
    • fromJson

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