你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphListItem Class

public final class MicrosoftGraphListItem
extends MicrosoftGraphBaseItemInner

listItem.

Constructor Summary

Constructor Description
MicrosoftGraphListItem()

Creates an instance of MicrosoftGraphListItem class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: listItem.

MicrosoftGraphItemAnalytics analytics()

Get the analytics property: itemAnalytics.

MicrosoftGraphContentTypeInfo contentType()

Get the contentType property: contentTypeInfo.

MicrosoftGraphDriveItem driveItem()

Get the driveItem property: driveItem.

MicrosoftGraphFieldValueSet fields()

Get the fields property: fieldValueSet.

static MicrosoftGraphListItem fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphListItem from the JsonReader.

MicrosoftGraphSharepointIds sharepointIds()

Get the sharepointIds property: sharepointIds.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<MicrosoftGraphListItemVersion> versions()

Get the versions property: The list of previous versions of the list item.

MicrosoftGraphListItem withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: listItem.

MicrosoftGraphListItem withAnalytics(MicrosoftGraphItemAnalytics analytics)

Set the analytics property: itemAnalytics.

MicrosoftGraphListItem withContentType(MicrosoftGraphContentTypeInfo contentType)

Set the contentType property: contentTypeInfo.

MicrosoftGraphListItem withCreatedBy(MicrosoftGraphIdentitySet createdBy)

Set the createdBy property: identitySet.

MicrosoftGraphListItem withCreatedByUser(MicrosoftGraphUserInner createdByUser)

Set the createdByUser property: Represents an Azure Active Directory user object.

MicrosoftGraphListItem withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: Date and time of item creation.

MicrosoftGraphListItem withDescription(String description)

Set the description property: Provides a user-visible description of the item.

MicrosoftGraphListItem withDriveItem(MicrosoftGraphDriveItem driveItem)

Set the driveItem property: driveItem.

MicrosoftGraphListItem withEtag(String etag)

Set the etag property: ETag for the item.

MicrosoftGraphListItem withFields(MicrosoftGraphFieldValueSet fields)

Set the fields property: fieldValueSet.

MicrosoftGraphListItem withId(String id)

Set the id property: Read-only.

MicrosoftGraphListItem withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Set the lastModifiedBy property: identitySet.

MicrosoftGraphListItem withLastModifiedByUser(MicrosoftGraphUserInner lastModifiedByUser)

Set the lastModifiedByUser property: Represents an Azure Active Directory user object.

MicrosoftGraphListItem withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: Date and time the item was last modified.

MicrosoftGraphListItem withName(String name)

Set the name property: The name of the item.

MicrosoftGraphListItem withParentReference(MicrosoftGraphItemReference parentReference)

Set the parentReference property: itemReference.

MicrosoftGraphListItem withSharepointIds(MicrosoftGraphSharepointIds sharepointIds)

Set the sharepointIds property: sharepointIds.

MicrosoftGraphListItem withVersions(List<MicrosoftGraphListItemVersion> versions)

Set the versions property: The list of previous versions of the list item.

MicrosoftGraphListItem withWebUrl(String webUrl)

Set the webUrl property: URL that displays the resource in the browser.

Methods inherited from MicrosoftGraphBaseItemInner

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphListItem

public MicrosoftGraphListItem()

Creates an instance of MicrosoftGraphListItem class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: listItem.

Overrides:

MicrosoftGraphListItem.additionalProperties()

Returns:

the additionalProperties value.

analytics

public MicrosoftGraphItemAnalytics analytics()

Get the analytics property: itemAnalytics.

Returns:

the analytics value.

contentType

public MicrosoftGraphContentTypeInfo contentType()

Get the contentType property: contentTypeInfo.

Returns:

the contentType value.

driveItem

public MicrosoftGraphDriveItem driveItem()

Get the driveItem property: driveItem.

Returns:

the driveItem value.

fields

public MicrosoftGraphFieldValueSet fields()

Get the fields property: fieldValueSet.

Returns:

the fields value.

fromJson

public static MicrosoftGraphListItem fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphListItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphListItem 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 MicrosoftGraphListItem.

sharepointIds

public MicrosoftGraphSharepointIds sharepointIds()

Get the sharepointIds property: sharepointIds.

Returns:

the sharepointIds value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphListItem.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphListItem.validate()

versions

public List versions()

Get the versions property: The list of previous versions of the list item.

Returns:

the versions value.

withAdditionalProperties

public MicrosoftGraphListItem withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: listItem.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphListItem object itself.

withAnalytics

public MicrosoftGraphListItem withAnalytics(MicrosoftGraphItemAnalytics analytics)

Set the analytics property: itemAnalytics.

Parameters:

analytics - the analytics value to set.

Returns:

the MicrosoftGraphListItem object itself.

withContentType

public MicrosoftGraphListItem withContentType(MicrosoftGraphContentTypeInfo contentType)

Set the contentType property: contentTypeInfo.

Parameters:

contentType - the contentType value to set.

Returns:

the MicrosoftGraphListItem object itself.

withCreatedBy

public MicrosoftGraphListItem withCreatedBy(MicrosoftGraphIdentitySet createdBy)

Set the createdBy property: identitySet.

Overrides:

MicrosoftGraphListItem.withCreatedBy(MicrosoftGraphIdentitySet createdBy)

Parameters:

createdBy

withCreatedByUser

public MicrosoftGraphListItem withCreatedByUser(MicrosoftGraphUserInner createdByUser)

Set the createdByUser property: Represents an Azure Active Directory user object.

Overrides:

MicrosoftGraphListItem.withCreatedByUser(MicrosoftGraphUserInner createdByUser)

Parameters:

createdByUser

withCreatedDateTime

public MicrosoftGraphListItem withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: Date and time of item creation. Read-only.

Overrides:

MicrosoftGraphListItem.withCreatedDateTime(OffsetDateTime createdDateTime)

Parameters:

createdDateTime

withDescription

public MicrosoftGraphListItem withDescription(String description)

Set the description property: Provides a user-visible description of the item. Optional.

Overrides:

MicrosoftGraphListItem.withDescription(String description)

Parameters:

description

withDriveItem

public MicrosoftGraphListItem withDriveItem(MicrosoftGraphDriveItem driveItem)

Set the driveItem property: driveItem.

Parameters:

driveItem - the driveItem value to set.

Returns:

the MicrosoftGraphListItem object itself.

withEtag

public MicrosoftGraphListItem withEtag(String etag)

Set the etag property: ETag for the item. Read-only.

Overrides:

MicrosoftGraphListItem.withEtag(String etag)

Parameters:

etag

withFields

public MicrosoftGraphListItem withFields(MicrosoftGraphFieldValueSet fields)

Set the fields property: fieldValueSet.

Parameters:

fields - the fields value to set.

Returns:

the MicrosoftGraphListItem object itself.

withId

public MicrosoftGraphListItem withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphListItem.withId(String id)

Parameters:

id

withLastModifiedBy

public MicrosoftGraphListItem withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Set the lastModifiedBy property: identitySet.

Overrides:

MicrosoftGraphListItem.withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Parameters:

lastModifiedBy

withLastModifiedByUser

public MicrosoftGraphListItem withLastModifiedByUser(MicrosoftGraphUserInner lastModifiedByUser)

Set the lastModifiedByUser property: Represents an Azure Active Directory user object.

Overrides:

MicrosoftGraphListItem.withLastModifiedByUser(MicrosoftGraphUserInner lastModifiedByUser)

Parameters:

lastModifiedByUser

withLastModifiedDateTime

public MicrosoftGraphListItem withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

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

Overrides:

MicrosoftGraphListItem.withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Parameters:

lastModifiedDateTime

withName

public MicrosoftGraphListItem withName(String name)

Set the name property: The name of the item. Read-write.

Overrides:

MicrosoftGraphListItem.withName(String name)

Parameters:

name

withParentReference

public MicrosoftGraphListItem withParentReference(MicrosoftGraphItemReference parentReference)

Set the parentReference property: itemReference.

Overrides:

MicrosoftGraphListItem.withParentReference(MicrosoftGraphItemReference parentReference)

Parameters:

parentReference

withSharepointIds

public MicrosoftGraphListItem withSharepointIds(MicrosoftGraphSharepointIds sharepointIds)

Set the sharepointIds property: sharepointIds.

Parameters:

sharepointIds - the sharepointIds value to set.

Returns:

the MicrosoftGraphListItem object itself.

withVersions

public MicrosoftGraphListItem withVersions(List versions)

Set the versions property: The list of previous versions of the list item.

Parameters:

versions - the versions value to set.

Returns:

the MicrosoftGraphListItem object itself.

withWebUrl

public MicrosoftGraphListItem withWebUrl(String webUrl)

Set the webUrl property: URL that displays the resource in the browser. Read-only.

Overrides:

MicrosoftGraphListItem.withWebUrl(String webUrl)

Parameters:

webUrl

Applies to