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

MicrosoftGraphItemReference Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphItemReference

Implements

public final class MicrosoftGraphItemReference
implements JsonSerializable<MicrosoftGraphItemReference>

itemReference.

Constructor Summary

Constructor Description
MicrosoftGraphItemReference()

Creates an instance of MicrosoftGraphItemReference class.

Method Summary

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

Get the additionalProperties property: itemReference.

String driveId()

Get the driveId property: Unique identifier of the drive instance that contains the item.

String driveType()

Get the driveType property: Identifies the type of drive.

static MicrosoftGraphItemReference fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphItemReference from the JsonReader.

String id()

Get the id property: Unique identifier of the item in the drive.

String name()

Get the name property: The name of the item being referenced.

String path()

Get the path property: Path that can be used to navigate to the item.

String shareId()

Get the shareId property: A unique identifier for a shared resource that can be accessed via the [Shares][] API.

MicrosoftGraphSharepointIds sharepointIds()

Get the sharepointIds property: sharepointIds.

String siteId()

Get the siteId property: The siteId property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphItemReference withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: itemReference.

MicrosoftGraphItemReference withDriveId(String driveId)

Set the driveId property: Unique identifier of the drive instance that contains the item.

MicrosoftGraphItemReference withDriveType(String driveType)

Set the driveType property: Identifies the type of drive.

MicrosoftGraphItemReference withId(String id)

Set the id property: Unique identifier of the item in the drive.

MicrosoftGraphItemReference withName(String name)

Set the name property: The name of the item being referenced.

MicrosoftGraphItemReference withPath(String path)

Set the path property: Path that can be used to navigate to the item.

MicrosoftGraphItemReference withShareId(String shareId)

Set the shareId property: A unique identifier for a shared resource that can be accessed via the [Shares][] API.

MicrosoftGraphItemReference withSharepointIds(MicrosoftGraphSharepointIds sharepointIds)

Set the sharepointIds property: sharepointIds.

MicrosoftGraphItemReference withSiteId(String siteId)

Set the siteId property: The siteId property.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphItemReference

public MicrosoftGraphItemReference()

Creates an instance of MicrosoftGraphItemReference class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: itemReference.

Returns:

the additionalProperties value.

driveId

public String driveId()

Get the driveId property: Unique identifier of the drive instance that contains the item. Read-only.

Returns:

the driveId value.

driveType

public String driveType()

Get the driveType property: Identifies the type of drive. See [drive][] resource for values.

Returns:

the driveType value.

fromJson

public static MicrosoftGraphItemReference fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphItemReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Unique identifier of the item in the drive. Read-only.

Returns:

the id value.

name

public String name()

Get the name property: The name of the item being referenced. Read-only.

Returns:

the name value.

path

public String path()

Get the path property: Path that can be used to navigate to the item. Read-only.

Returns:

the path value.

shareId

public String shareId()

Get the shareId property: A unique identifier for a shared resource that can be accessed via the [Shares][] API.

Returns:

the shareId value.

sharepointIds

public MicrosoftGraphSharepointIds sharepointIds()

Get the sharepointIds property: sharepointIds.

Returns:

the sharepointIds value.

siteId

public String siteId()

Get the siteId property: The siteId property.

Returns:

the siteId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphItemReference withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: itemReference.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphItemReference object itself.

withDriveId

public MicrosoftGraphItemReference withDriveId(String driveId)

Set the driveId property: Unique identifier of the drive instance that contains the item. Read-only.

Parameters:

driveId - the driveId value to set.

Returns:

the MicrosoftGraphItemReference object itself.

withDriveType

public MicrosoftGraphItemReference withDriveType(String driveType)

Set the driveType property: Identifies the type of drive. See [drive][] resource for values.

Parameters:

driveType - the driveType value to set.

Returns:

the MicrosoftGraphItemReference object itself.

withId

public MicrosoftGraphItemReference withId(String id)

Set the id property: Unique identifier of the item in the drive. Read-only.

Parameters:

id - the id value to set.

Returns:

the MicrosoftGraphItemReference object itself.

withName

public MicrosoftGraphItemReference withName(String name)

Set the name property: The name of the item being referenced. Read-only.

Parameters:

name - the name value to set.

Returns:

the MicrosoftGraphItemReference object itself.

withPath

public MicrosoftGraphItemReference withPath(String path)

Set the path property: Path that can be used to navigate to the item. Read-only.

Parameters:

path - the path value to set.

Returns:

the MicrosoftGraphItemReference object itself.

withShareId

public MicrosoftGraphItemReference withShareId(String shareId)

Set the shareId property: A unique identifier for a shared resource that can be accessed via the [Shares][] API.

Parameters:

shareId - the shareId value to set.

Returns:

the MicrosoftGraphItemReference object itself.

withSharepointIds

public MicrosoftGraphItemReference withSharepointIds(MicrosoftGraphSharepointIds sharepointIds)

Set the sharepointIds property: sharepointIds.

Parameters:

sharepointIds - the sharepointIds value to set.

Returns:

the MicrosoftGraphItemReference object itself.

withSiteId

public MicrosoftGraphItemReference withSiteId(String siteId)

Set the siteId property: The siteId property.

Parameters:

siteId - the siteId value to set.

Returns:

the MicrosoftGraphItemReference object itself.

Applies to