MicrosoftGraphDriveItemVersion Class

public final class MicrosoftGraphDriveItemVersion
extends MicrosoftGraphBaseItemVersion

driveItemVersion.

Constructor Summary

Constructor Description
MicrosoftGraphDriveItemVersion()

Creates an instance of MicrosoftGraphDriveItemVersion class.

Method Summary

Modifier and Type Method and 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.

static MicrosoftGraphDriveItemVersion fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDriveItemVersion from the JsonReader.

Long size()

Get the size property: Indicates the size of the content stream for this version of the item.

JsonWriter toJson(JsonWriter jsonWriter)
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 MicrosoftGraphBaseItemVersion

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphDriveItemVersion

public MicrosoftGraphDriveItemVersion()

Creates an instance of MicrosoftGraphDriveItemVersion class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: driveItemVersion.

Overrides:

MicrosoftGraphDriveItemVersion.additionalProperties()

Returns:

the additionalProperties value.

content

public byte[] content()

Get the content property: The content stream for this version of the item.

Returns:

the content value.

fromJson

public static MicrosoftGraphDriveItemVersion fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDriveItemVersion from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphDriveItemVersion if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphDriveItemVersion.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphDriveItemVersion.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphDriveItemVersion.validate()

withAdditionalProperties

public MicrosoftGraphDriveItemVersion withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: driveItemVersion.

Overrides:

MicrosoftGraphDriveItemVersion.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphDriveItemVersion object itself.

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.

withId

public MicrosoftGraphDriveItemVersion withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphDriveItemVersion.withId(String id)

Parameters:

id

withLastModifiedBy

public MicrosoftGraphDriveItemVersion withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Set the lastModifiedBy property: identitySet.

Overrides:

MicrosoftGraphDriveItemVersion.withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Parameters:

lastModifiedBy

withLastModifiedDateTime

public MicrosoftGraphDriveItemVersion withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: Date and time the version was last modified. Read-only.

Overrides:

MicrosoftGraphDriveItemVersion.withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Parameters:

lastModifiedDateTime

withPublication

public MicrosoftGraphDriveItemVersion withPublication(MicrosoftGraphPublicationFacet publication)

Set the publication property: publicationFacet.

Overrides:

MicrosoftGraphDriveItemVersion.withPublication(MicrosoftGraphPublicationFacet publication)

Parameters:

publication

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.

Applies to