Class ManagedInstancePrivateLinkServiceConnectionStateProperty

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

public final class ManagedInstancePrivateLinkServiceConnectionStateProperty extends Object implements com.azure.json.JsonSerializable<ManagedInstancePrivateLinkServiceConnectionStateProperty>
The ManagedInstancePrivateLinkServiceConnectionStateProperty model.
  • Constructor Details

    • ManagedInstancePrivateLinkServiceConnectionStateProperty

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

    • status

      public String status()
      Get the status property: The private link service connection status.
      Returns:
      the status value.
    • withStatus

      Set the status property: The private link service connection status.
      Parameters:
      status - the status value to set.
      Returns:
      the ManagedInstancePrivateLinkServiceConnectionStateProperty object itself.
    • description

      public String description()
      Get the description property: The private link service connection description.
      Returns:
      the description value.
    • withDescription

      Set the description property: The private link service connection description.
      Parameters:
      description - the description value to set.
      Returns:
      the ManagedInstancePrivateLinkServiceConnectionStateProperty object itself.
    • actionsRequired

      public String actionsRequired()
      Get the actionsRequired property: The private link service connection description.
      Returns:
      the actionsRequired value.
    • 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<ManagedInstancePrivateLinkServiceConnectionStateProperty>
      Throws:
      IOException
    • fromJson

      public static ManagedInstancePrivateLinkServiceConnectionStateProperty fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ManagedInstancePrivateLinkServiceConnectionStateProperty from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ManagedInstancePrivateLinkServiceConnectionStateProperty if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ManagedInstancePrivateLinkServiceConnectionStateProperty.