Class SharedPrivateLinkResourceProperties

java.lang.Object
com.azure.resourcemanager.cdn.models.SharedPrivateLinkResourceProperties

public final class SharedPrivateLinkResourceProperties extends Object
Describes the properties of an existing Shared Private Link Resource to use when connecting to a private origin.
  • Constructor Details

    • SharedPrivateLinkResourceProperties

      public SharedPrivateLinkResourceProperties()
  • Method Details

    • privateLink

      public ResourceReference privateLink()
      Get the privateLink property: The resource id of the resource the shared private link resource is for.
      Returns:
      the privateLink value.
    • withPrivateLink

      public SharedPrivateLinkResourceProperties withPrivateLink(ResourceReference privateLink)
      Set the privateLink property: The resource id of the resource the shared private link resource is for.
      Parameters:
      privateLink - the privateLink value to set.
      Returns:
      the SharedPrivateLinkResourceProperties object itself.
    • privateLinkLocation

      public String privateLinkLocation()
      Get the privateLinkLocation property: The location of the shared private link resource.
      Returns:
      the privateLinkLocation value.
    • withPrivateLinkLocation

      public SharedPrivateLinkResourceProperties withPrivateLinkLocation(String privateLinkLocation)
      Set the privateLinkLocation property: The location of the shared private link resource.
      Parameters:
      privateLinkLocation - the privateLinkLocation value to set.
      Returns:
      the SharedPrivateLinkResourceProperties object itself.
    • groupId

      public String groupId()
      Get the groupId property: The group id from the provider of resource the shared private link resource is for.
      Returns:
      the groupId value.
    • withGroupId

      public SharedPrivateLinkResourceProperties withGroupId(String groupId)
      Set the groupId property: The group id from the provider of resource the shared private link resource is for.
      Parameters:
      groupId - the groupId value to set.
      Returns:
      the SharedPrivateLinkResourceProperties object itself.
    • requestMessage

      public String requestMessage()
      Get the requestMessage property: The request message for requesting approval of the shared private link resource.
      Returns:
      the requestMessage value.
    • withRequestMessage

      public SharedPrivateLinkResourceProperties withRequestMessage(String requestMessage)
      Set the requestMessage property: The request message for requesting approval of the shared private link resource.
      Parameters:
      requestMessage - the requestMessage value to set.
      Returns:
      the SharedPrivateLinkResourceProperties object itself.
    • status

      Get the status property: Status of the shared private link resource. Can be Pending, Approved, Rejected, Disconnected, or Timeout.
      Returns:
      the status value.
    • withStatus

      Set the status property: Status of the shared private link resource. Can be Pending, Approved, Rejected, Disconnected, or Timeout.
      Parameters:
      status - the status value to set.
      Returns:
      the SharedPrivateLinkResourceProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.