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>
Pair of virtual endpoints for a server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the endpointType property: Type of endpoint for the virtual endpoints.static VirtualEndpointInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualEndpointInner from the JsonReader.id()Get the id property: Fully qualified resource ID for the resource.members()Get the members property: List of servers that one of the virtual endpoints can refer to.name()Get the name property: The name of the resource.com.azure.core.management.SystemDataGet the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.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
-
VirtualEndpointInner
public VirtualEndpointInner()Creates an instance of VirtualEndpointInner class.
-
-
Method Details
-
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
-
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
Get the endpointType property: Type of endpoint for the virtual endpoints.- Overrides:
endpointTypein classVirtualEndpointResourceForPatch- Returns:
- the endpointType value.
-
withEndpointType
Set the endpointType property: Type of endpoint for the virtual endpoints.- Overrides:
withEndpointTypein classVirtualEndpointResourceForPatch- Parameters:
endpointType- the endpointType value to set.- Returns:
- the VirtualEndpointInner object itself.
-
members
Get the members property: List of servers that one of the virtual endpoints can refer to.- Overrides:
membersin classVirtualEndpointResourceForPatch- Returns:
- the members value.
-
withMembers
Set the members property: List of servers that one of the virtual endpoints can refer to.- Overrides:
withMembersin classVirtualEndpointResourceForPatch- Parameters:
members- the members value to set.- Returns:
- the VirtualEndpointInner object itself.
-
virtualEndpoints
Get the virtualEndpoints property: List of virtual endpoints for a server.- Overrides:
virtualEndpointsin classVirtualEndpointResourceForPatch- Returns:
- the virtualEndpoints value.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classVirtualEndpointResourceForPatch- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VirtualEndpointResourceForPatch>- Overrides:
toJsonin classVirtualEndpointResourceForPatch- 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.
-