Class SharedPrivateLinkResource

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

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

    • SharedPrivateLinkResource

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

    • name

      public String name()
      Get the name property: Unique name of the private link.
      Returns:
      the name value.
    • withName

      public SharedPrivateLinkResource withName(String name)
      Set the name property: Unique name of the private link.
      Parameters:
      name - the name value to set.
      Returns:
      the SharedPrivateLinkResource object itself.
    • privateLinkResourceId

      public String privateLinkResourceId()
      Get the privateLinkResourceId property: The resource id that private link links to.
      Returns:
      the privateLinkResourceId value.
    • withPrivateLinkResourceId

      public SharedPrivateLinkResource withPrivateLinkResourceId(String privateLinkResourceId)
      Set the privateLinkResourceId property: The resource id that private link links to.
      Parameters:
      privateLinkResourceId - the privateLinkResourceId value to set.
      Returns:
      the SharedPrivateLinkResource object itself.
    • groupId

      public String groupId()
      Get the groupId property: The private link resource group id.
      Returns:
      the groupId value.
    • withGroupId

      public SharedPrivateLinkResource withGroupId(String groupId)
      Set the groupId property: The private link resource group id.
      Parameters:
      groupId - the groupId value to set.
      Returns:
      the SharedPrivateLinkResource object itself.
    • requestMessage

      public String requestMessage()
      Get the requestMessage property: Request message.
      Returns:
      the requestMessage value.
    • withRequestMessage

      public SharedPrivateLinkResource withRequestMessage(String requestMessage)
      Set the requestMessage property: Request message.
      Parameters:
      requestMessage - the requestMessage value to set.
      Returns:
      the SharedPrivateLinkResource object itself.
    • 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 SharedPrivateLinkResource 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<SharedPrivateLinkResource>
      Throws:
      IOException
    • fromJson

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