Class MicrosoftGraphSharingLink
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphSharingLink
sharingLink.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphSharingLink class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: sharingLink.Get the application property: identity.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.scope()Get the scope property: The scope of the link represented by this permission.type()Get the type property: The type of the link created.voidvalidate()Validates the instance.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.webUrl()Get the webUrl property: A URL that opens the item in the browser on the OneDrive website.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: sharingLink.withApplication(MicrosoftGraphIdentity application) Set the application property: identity.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.Set the scope property: The scope of the link represented by this permission.Set the type property: The type of the link created.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.withWebUrl(String webUrl) Set the webUrl property: A URL that opens the item in the browser on the OneDrive website.
-
Constructor Details
-
MicrosoftGraphSharingLink
public MicrosoftGraphSharingLink()Creates an instance of MicrosoftGraphSharingLink class.
-
-
Method Details
-
application
Get the application property: identity.- Returns:
- the application value.
-
withApplication
Set the application property: identity.- Parameters:
application- the application value to set.- Returns:
- the MicrosoftGraphSharingLink object itself.
-
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
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
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
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
Get the type property: The type of the link created.- Returns:
- the type value.
-
withType
Set the type property: The type of the link created.- Parameters:
type- the type value to set.- Returns:
- the MicrosoftGraphSharingLink object itself.
-
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
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
Get the webUrl property: A URL that opens the item in the browser on the OneDrive website.- Returns:
- the webUrl value.
-
withWebUrl
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
Get the additionalProperties property: sharingLink.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
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.
-