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
-
public final class MicrosoftGraphDriveItemVersion extends MicrosoftGraphBaseItemVersion
driveItemVersion.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphDriveItemVersion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>additionalProperties()Get the additionalProperties property: driveItemVersion.byte[]content()Get the content property: The content stream for this version of the item.Longsize()Get the size property: Indicates the size of the content stream for this version of the item.voidvalidate()Validates the instance.MicrosoftGraphDriveItemVersionwithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: driveItemVersion.MicrosoftGraphDriveItemVersionwithContent(byte[] content)Set the content property: The content stream for this version of the item.MicrosoftGraphDriveItemVersionwithId(String id)Set the id property: Read-only.MicrosoftGraphDriveItemVersionwithLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)Set the lastModifiedBy property: identitySet.MicrosoftGraphDriveItemVersionwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Set the lastModifiedDateTime property: Date and time the version was last modified.MicrosoftGraphDriveItemVersionwithPublication(MicrosoftGraphPublicationFacet publication)Set the publication property: publicationFacet.MicrosoftGraphDriveItemVersionwithSize(Long size)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, publication
-
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 for this version of the item.- Returns:
- the content value.
-
withContent
public MicrosoftGraphDriveItemVersion withContent(byte[] content)
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
public Long size()
Get the size property: Indicates the size of the content stream for this version of the item.- Returns:
- the size value.
-
withSize
public MicrosoftGraphDriveItemVersion withSize(Long size)
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
public Map<String,Object> 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
public MicrosoftGraphDriveItemVersion withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
Set the lastModifiedBy property: identitySet.- Overrides:
withLastModifiedByin classMicrosoftGraphBaseItemVersion- Parameters:
lastModifiedBy- the lastModifiedBy value to set.- Returns:
- the MicrosoftGraphBaseItemVersion object itself.
-
withLastModifiedDateTime
public MicrosoftGraphDriveItemVersion withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
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
public MicrosoftGraphDriveItemVersion withPublication(MicrosoftGraphPublicationFacet publication)
Set the publication property: publicationFacet.- Overrides:
withPublicationin classMicrosoftGraphBaseItemVersion- Parameters:
publication- the publication value to set.- Returns:
- the MicrosoftGraphBaseItemVersion object itself.
-
withId
public MicrosoftGraphDriveItemVersion withId(String id)
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.
-
-