Class SharingLink

java.lang.Object
com.microsoft.graph.models.SharingLink
All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject

public class SharingLink extends Object implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Sharing Link.
  • Field Details

    • oDataType

      @SerializedName("@odata.type") @Expose @Nullable public String oDataType
      the OData type of the object as returned by the service
    • application

      @SerializedName(value="application", alternate="Application") @Expose @Nullable public Identity application
      The Application. The app the link is associated with.
    • preventsDownload

      @SerializedName(value="preventsDownload", alternate="PreventsDownload") @Expose @Nullable public Boolean preventsDownload
      The Prevents Download. If true then the user can only use this link to view the item on the web, and cannot use it to download the contents of the item. Only for OneDrive for Business and SharePoint.
    • scope

      @SerializedName(value="scope", alternate="Scope") @Expose @Nullable public String scope
      The Scope. The scope of the link represented by this permission. Value anonymous indicates the link is usable by anyone, organization indicates the link is only usable for users signed into the same tenant.
    • type

      @SerializedName(value="type", alternate="Type") @Expose @Nullable public String type
      The Type. The type of the link created.
    • webHtml

      @SerializedName(value="webHtml", alternate="WebHtml") @Expose @Nullable public String webHtml
      The Web Html. For embed links, this property contains the HTML code for an <iframe> element that will embed the item in a webpage.
    • webUrl

      @SerializedName(value="webUrl", alternate="WebUrl") @Expose @Nullable public String webUrl
      The Web Url. A URL that opens the item in the browser on the OneDrive website.
  • Constructor Details

    • SharingLink

      public SharingLink()
  • Method Details

    • additionalDataManager

      @Nonnull public final com.microsoft.graph.serializer.AdditionalDataManager additionalDataManager()
      Specified by:
      additionalDataManager in interface com.microsoft.graph.serializer.IJsonBackedObject
    • setRawObject

      public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface com.microsoft.graph.serializer.IJsonBackedObject
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to