Class MicrosoftGraphDriveItemVersion
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphBaseItemVersion
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDriveItemVersion
driveItemVersion.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphDriveItemVersion class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: driveItemVersion.byte[]content()Get the content property: The content stream for this version of the item.size()Get the size property: Indicates the size of the content stream for this version of the item.voidvalidate()Validates the instance.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: driveItemVersion.withContent(byte[] content) Set the content property: The content stream for this version of the item.Set the id property: Read-only.withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy) Set the lastModifiedBy property: identitySet.withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime) Set the lastModifiedDateTime property: Date and time the version was last modified.withPublication(MicrosoftGraphPublicationFacet publication) Set the publication property: publicationFacet.Set the size property: Indicates the size of the content stream for this version of the item.Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphBaseItemVersion
lastModifiedBy, lastModifiedDateTime, publicationMethods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
Constructor Details
-
MicrosoftGraphDriveItemVersion
public MicrosoftGraphDriveItemVersion()Creates an instance of MicrosoftGraphDriveItemVersion class.
-
-
Method Details
-
content
public byte[] content()Get the content property: The content stream for this version of the item.- Returns:
- the content value.
-
withContent
Set the content property: The content stream for this version of the item.- Parameters:
content- the content value to set.- Returns:
- the MicrosoftGraphDriveItemVersion object itself.
-
size
Get the size property: Indicates the size of the content stream for this version of the item.- Returns:
- the size value.
-
withSize
Set the size property: Indicates the size of the content stream for this version of the item.- Parameters:
size- the size value to set.- Returns:
- the MicrosoftGraphDriveItemVersion object itself.
-
additionalProperties
Get the additionalProperties property: driveItemVersion.- Overrides:
additionalPropertiesin classMicrosoftGraphBaseItemVersion- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphDriveItemVersion withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: driveItemVersion.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphBaseItemVersion- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphDriveItemVersion object itself.
-
withLastModifiedBy
Set the lastModifiedBy property: identitySet.- Overrides:
withLastModifiedByin classMicrosoftGraphBaseItemVersion- Parameters:
lastModifiedBy- the lastModifiedBy value to set.- Returns:
- the MicrosoftGraphBaseItemVersion object itself.
-
withLastModifiedDateTime
Set the lastModifiedDateTime property: Date and time the version was last modified. Read-only.- Overrides:
withLastModifiedDateTimein classMicrosoftGraphBaseItemVersion- Parameters:
lastModifiedDateTime- the lastModifiedDateTime value to set.- Returns:
- the MicrosoftGraphBaseItemVersion object itself.
-
withPublication
Set the publication property: publicationFacet.- Overrides:
withPublicationin classMicrosoftGraphBaseItemVersion- Parameters:
publication- the publication value to set.- Returns:
- the MicrosoftGraphBaseItemVersion object itself.
-
withId
Set the id property: Read-only.- Overrides:
withIdin classMicrosoftGraphBaseItemVersion- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classMicrosoftGraphBaseItemVersion- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-