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 Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualEndpointResourceForPatch class. -
Method Summary
Modifier and TypeMethodDescriptionGet the endpointType property: Type of endpoint for the virtual endpoints.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualEndpointResourceForPatch from the JsonReader.members()Get the members property: List of servers that one of the virtual endpoints can refer to.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the virtualEndpoints property: List of virtual endpoints for a server.withEndpointType(VirtualEndpointType endpointType) Set the endpointType property: Type of endpoint for the virtual endpoints.withMembers(List<String> members) Set the members property: List of servers that one of the virtual endpoints can refer to.Methods inherited from class 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
-
VirtualEndpointResourceForPatch
public VirtualEndpointResourceForPatch()Creates an instance of VirtualEndpointResourceForPatch class.
-
-
Method Details
-
endpointType
Get the endpointType property: Type of endpoint for the virtual endpoints.- Returns:
- the endpointType value.
-
withEndpointType
Set the endpointType property: Type of endpoint for the virtual endpoints.- Parameters:
endpointType- the endpointType value to set.- Returns:
- the VirtualEndpointResourceForPatch object itself.
-
members
-
withMembers
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
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.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.
-