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 Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualEndpointResourceProperties 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 VirtualEndpointResourceProperties 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
-
VirtualEndpointResourceProperties
public VirtualEndpointResourceProperties()Creates an instance of VirtualEndpointResourceProperties 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 VirtualEndpointResourceProperties 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 VirtualEndpointResourceProperties 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<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.
-