Class PrivateLinkConnectionApprovalRequest
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.PrivateLinkConnectionApprovalRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PrivateLinkConnectionApprovalRequest>
public final class PrivateLinkConnectionApprovalRequest
extends Object
implements com.azure.json.JsonSerializable<PrivateLinkConnectionApprovalRequest>
A request to approve or reject a private endpoint connection.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PrivateLinkConnectionApprovalRequest class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of PrivateLinkConnectionApprovalRequest from the JsonReader.Get the privateLinkServiceConnectionState property: The state of a private link connection.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withPrivateLinkServiceConnectionState
(PrivateLinkConnectionState privateLinkServiceConnectionState) Set the privateLinkServiceConnectionState property: The state of a private link connection.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
PrivateLinkConnectionApprovalRequest
public PrivateLinkConnectionApprovalRequest()Creates an instance of PrivateLinkConnectionApprovalRequest class.
-
-
Method Details
-
privateLinkServiceConnectionState
Get the privateLinkServiceConnectionState property: The state of a private link connection.- Returns:
- the privateLinkServiceConnectionState value.
-
withPrivateLinkServiceConnectionState
public PrivateLinkConnectionApprovalRequest withPrivateLinkServiceConnectionState(PrivateLinkConnectionState privateLinkServiceConnectionState) Set the privateLinkServiceConnectionState property: The state of a private link connection.- Parameters:
privateLinkServiceConnectionState
- the privateLinkServiceConnectionState value to set.- Returns:
- the PrivateLinkConnectionApprovalRequest object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<PrivateLinkConnectionApprovalRequest>
- Throws:
IOException
-
fromJson
public static PrivateLinkConnectionApprovalRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PrivateLinkConnectionApprovalRequest from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of PrivateLinkConnectionApprovalRequest 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 PrivateLinkConnectionApprovalRequest.
-