Class RegistryPrivateLinkServiceConnectionState

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

public final class RegistryPrivateLinkServiceConnectionState extends Object implements com.azure.json.JsonSerializable<RegistryPrivateLinkServiceConnectionState>
The connection state.
  • Constructor Details

    • RegistryPrivateLinkServiceConnectionState

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

    • actionsRequired

      public String actionsRequired()
      Get the actionsRequired property: Some RP chose "None". Other RPs use this for region expansion.
      Returns:
      the actionsRequired value.
    • withActionsRequired

      public RegistryPrivateLinkServiceConnectionState withActionsRequired(String actionsRequired)
      Set the actionsRequired property: Some RP chose "None". Other RPs use this for region expansion.
      Parameters:
      actionsRequired - the actionsRequired value to set.
      Returns:
      the RegistryPrivateLinkServiceConnectionState object itself.
    • description

      public String description()
      Get the description property: User-defined message that, per NRP doc, may be used for approval-related message.
      Returns:
      the description value.
    • withDescription

      public RegistryPrivateLinkServiceConnectionState withDescription(String description)
      Set the description property: User-defined message that, per NRP doc, may be used for approval-related message.
      Parameters:
      description - the description value to set.
      Returns:
      the RegistryPrivateLinkServiceConnectionState object itself.
    • status

      Get the status property: Connection status of the service consumer with the service provider.
      Returns:
      the status value.
    • withStatus

      Set the status property: Connection status of the service consumer with the service provider.
      Parameters:
      status - the status value to set.
      Returns:
      the RegistryPrivateLinkServiceConnectionState 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<RegistryPrivateLinkServiceConnectionState>
      Throws:
      IOException
    • fromJson

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