Class PrivateLinkServiceConnectionState

java.lang.Object
com.azure.resourcemanager.storage.models.PrivateLinkServiceConnectionState
All Implemented Interfaces:
com.azure.json.JsonSerializable<PrivateLinkServiceConnectionState>

public final class PrivateLinkServiceConnectionState extends Object implements com.azure.json.JsonSerializable<PrivateLinkServiceConnectionState>
A collection of information about the state of the connection between service consumer and provider.
  • Constructor Details

    • PrivateLinkServiceConnectionState

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

    • status

      Get the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
      Returns:
      the status value.
    • withStatus

      Set the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
      Parameters:
      status - the status value to set.
      Returns:
      the PrivateLinkServiceConnectionState object itself.
    • description

      public String description()
      Get the description property: The reason for approval/rejection of the connection.
      Returns:
      the description value.
    • withDescription

      public PrivateLinkServiceConnectionState withDescription(String description)
      Set the description property: The reason for approval/rejection of the connection.
      Parameters:
      description - the description value to set.
      Returns:
      the PrivateLinkServiceConnectionState object itself.
    • actionRequired

      public String actionRequired()
      Get the actionRequired property: A message indicating if changes on the service provider require any updates on the consumer.
      Returns:
      the actionRequired value.
    • withActionRequired

      public PrivateLinkServiceConnectionState withActionRequired(String actionRequired)
      Set the actionRequired property: A message indicating if changes on the service provider require any updates on the consumer.
      Parameters:
      actionRequired - the actionRequired value to set.
      Returns:
      the PrivateLinkServiceConnectionState 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<PrivateLinkServiceConnectionState>
      Throws:
      IOException
    • fromJson

      public static PrivateLinkServiceConnectionState fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of PrivateLinkServiceConnectionState from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of PrivateLinkServiceConnectionState 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 PrivateLinkServiceConnectionState.