Class MhsmPrivateLinkServiceConnectionState

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

public final class MhsmPrivateLinkServiceConnectionState extends Object implements com.azure.json.JsonSerializable<MhsmPrivateLinkServiceConnectionState>
An object that represents the approval state of the private link connection.
  • Constructor Details

    • MhsmPrivateLinkServiceConnectionState

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

    • status

      Get the status property: Indicates whether the connection has been approved, rejected or removed by the key vault owner.
      Returns:
      the status value.
    • withStatus

      Set the status property: Indicates whether the connection has been approved, rejected or removed by the key vault owner.
      Parameters:
      status - the status value to set.
      Returns:
      the MhsmPrivateLinkServiceConnectionState object itself.
    • description

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

      public MhsmPrivateLinkServiceConnectionState withDescription(String description)
      Set the description property: The reason for approval or rejection.
      Parameters:
      description - the description value to set.
      Returns:
      the MhsmPrivateLinkServiceConnectionState object itself.
    • actionsRequired

      public ActionsRequired actionsRequired()
      Get the actionsRequired property: A message indicating if changes on the service provider require any updates on the consumer.
      Returns:
      the actionsRequired value.
    • withActionsRequired

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

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