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.Long
size()
Get the size property: Indicates the size of the content stream for this version of the item.void
validate()
Validates the instance.MicrosoftGraphDriveItemVersion
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: driveItemVersion.MicrosoftGraphDriveItemVersion
withContent(byte[] content)
Set the content property: The content stream for this version of the item.MicrosoftGraphDriveItemVersion
withId(String id)
Set the id property: Read-only.MicrosoftGraphDriveItemVersion
withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
Set the lastModifiedBy property: identitySet.MicrosoftGraphDriveItemVersion
withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Set the lastModifiedDateTime property: Date and time the version was last modified.MicrosoftGraphDriveItemVersion
withPublication(MicrosoftGraphPublicationFacet publication)
Set the publication property: publicationFacet.MicrosoftGraphDriveItemVersion
withSize(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:
additionalProperties
in classMicrosoftGraphBaseItemVersion
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphDriveItemVersion withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: driveItemVersion.- Overrides:
withAdditionalProperties
in 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:
withLastModifiedBy
in 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:
withLastModifiedDateTime
in 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:
withPublication
in 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:
withId
in classMicrosoftGraphBaseItemVersion
- Parameters:
id
- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classMicrosoftGraphBaseItemVersion
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-