Class MicrosoftGraphSharingLink


  • public final class MicrosoftGraphSharingLink
    extends Object
    sharingLink.
    • Constructor Detail

      • MicrosoftGraphSharingLink

        public MicrosoftGraphSharingLink()
    • Method Detail

      • application

        public MicrosoftGraphIdentity application()
        Get the application property: identity.
        Returns:
        the application value.
      • withApplication

        public MicrosoftGraphSharingLink withApplication​(MicrosoftGraphIdentity application)
        Set the application property: identity.
        Parameters:
        application - the application value to set.
        Returns:
        the MicrosoftGraphSharingLink object itself.
      • preventsDownload

        public Boolean preventsDownload()
        Get the preventsDownload property: 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.
        Returns:
        the preventsDownload value.
      • withPreventsDownload

        public MicrosoftGraphSharingLink withPreventsDownload​(Boolean preventsDownload)
        Set the preventsDownload property: 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.
        Parameters:
        preventsDownload - the preventsDownload value to set.
        Returns:
        the MicrosoftGraphSharingLink object itself.
      • scope

        public String scope()
        Get the scope property: 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.
        Returns:
        the scope value.
      • withScope

        public MicrosoftGraphSharingLink withScope​(String scope)
        Set the scope property: 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.
        Parameters:
        scope - the scope value to set.
        Returns:
        the MicrosoftGraphSharingLink object itself.
      • type

        public String type()
        Get the type property: The type of the link created.
        Returns:
        the type value.
      • withType

        public MicrosoftGraphSharingLink withType​(String type)
        Set the type property: The type of the link created.
        Parameters:
        type - the type value to set.
        Returns:
        the MicrosoftGraphSharingLink object itself.
      • webHtml

        public String webHtml()
        Get the webHtml property: For embed links, this property contains the HTML code for an <iframe> element that will embed the item in a webpage.
        Returns:
        the webHtml value.
      • withWebHtml

        public MicrosoftGraphSharingLink withWebHtml​(String webHtml)
        Set the webHtml property: For embed links, this property contains the HTML code for an <iframe> element that will embed the item in a webpage.
        Parameters:
        webHtml - the webHtml value to set.
        Returns:
        the MicrosoftGraphSharingLink object itself.
      • webUrl

        public String webUrl()
        Get the webUrl property: A URL that opens the item in the browser on the OneDrive website.
        Returns:
        the webUrl value.
      • withWebUrl

        public MicrosoftGraphSharingLink withWebUrl​(String webUrl)
        Set the webUrl property: A URL that opens the item in the browser on the OneDrive website.
        Parameters:
        webUrl - the webUrl value to set.
        Returns:
        the MicrosoftGraphSharingLink object itself.
      • additionalProperties

        public Map<String,​Object> additionalProperties()
        Get the additionalProperties property: sharingLink.
        Returns:
        the additionalProperties value.
      • withAdditionalProperties

        public MicrosoftGraphSharingLink withAdditionalProperties​(Map<String,​Object> additionalProperties)
        Set the additionalProperties property: sharingLink.
        Parameters:
        additionalProperties - the additionalProperties value to set.
        Returns:
        the MicrosoftGraphSharingLink object itself.
      • validate

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