Class MicrosoftGraphOnenoteResource
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphOnenoteEntityBaseModel
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphOnenoteResource
-
public final class MicrosoftGraphOnenoteResource extends MicrosoftGraphOnenoteEntityBaseModel
onenoteResource.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphOnenoteResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: onenoteResource.byte[]
content()
Get the content property: The content stream.String
contentUrl()
Get the contentUrl property: The URL for downloading the content.void
validate()
Validates the instance.MicrosoftGraphOnenoteResource
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: onenoteResource.MicrosoftGraphOnenoteResource
withContent(byte[] content)
Set the content property: The content stream.MicrosoftGraphOnenoteResource
withContentUrl(String contentUrl)
Set the contentUrl property: The URL for downloading the content.MicrosoftGraphOnenoteResource
withId(String id)
Set the id property: Read-only.MicrosoftGraphOnenoteResource
withSelf(String self)
Set the self property: The endpoint where you can get details about the page.-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphOnenoteEntityBaseModel
self
-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
-
-
-
Method Detail
-
content
public byte[] content()
Get the content property: The content stream.- Returns:
- the content value.
-
withContent
public MicrosoftGraphOnenoteResource withContent(byte[] content)
Set the content property: The content stream.- Parameters:
content
- the content value to set.- Returns:
- the MicrosoftGraphOnenoteResource object itself.
-
contentUrl
public String contentUrl()
Get the contentUrl property: The URL for downloading the content.- Returns:
- the contentUrl value.
-
withContentUrl
public MicrosoftGraphOnenoteResource withContentUrl(String contentUrl)
Set the contentUrl property: The URL for downloading the content.- Parameters:
contentUrl
- the contentUrl value to set.- Returns:
- the MicrosoftGraphOnenoteResource object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: onenoteResource.- Overrides:
additionalProperties
in classMicrosoftGraphOnenoteEntityBaseModel
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphOnenoteResource withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: onenoteResource.- Overrides:
withAdditionalProperties
in classMicrosoftGraphOnenoteEntityBaseModel
- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the MicrosoftGraphOnenoteResource object itself.
-
withSelf
public MicrosoftGraphOnenoteResource withSelf(String self)
Set the self property: The endpoint where you can get details about the page. Read-only.- Overrides:
withSelf
in classMicrosoftGraphOnenoteEntityBaseModel
- Parameters:
self
- the self value to set.- Returns:
- the MicrosoftGraphOnenoteEntityBaseModel object itself.
-
withId
public MicrosoftGraphOnenoteResource withId(String id)
Set the id property: Read-only.- Overrides:
withId
in classMicrosoftGraphOnenoteEntityBaseModel
- Parameters:
id
- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classMicrosoftGraphOnenoteEntityBaseModel
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-