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 Details

    • PrivateLinkConnectionApprovalRequest

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

    • privateLinkServiceConnectionState

      public PrivateLinkConnectionState 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.