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

MicrosoftGraphTrending Class

public final class MicrosoftGraphTrending
extends MicrosoftGraphEntity

trending.

Constructor Summary

Constructor Description
MicrosoftGraphTrending()

Creates an instance of MicrosoftGraphTrending class.

Method Summary

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

Get the additionalProperties property: trending.

static MicrosoftGraphTrending fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTrending from the JsonReader.

OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: The lastModifiedDateTime property.

MicrosoftGraphEntity resource()

Get the resource property: entity.

MicrosoftGraphResourceReference resourceReference()

Get the resourceReference property: resourceReference.

MicrosoftGraphResourceVisualization resourceVisualization()

Get the resourceVisualization property: resourceVisualization.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Double weight()

Get the weight property: Value indicating how much the document is currently trending.

MicrosoftGraphTrending withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: trending.

MicrosoftGraphTrending withId(String id)

Set the id property: Read-only.

MicrosoftGraphTrending withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: The lastModifiedDateTime property.

MicrosoftGraphTrending withResource(MicrosoftGraphEntity resource)

Set the resource property: entity.

MicrosoftGraphTrending withResourceReference(MicrosoftGraphResourceReference resourceReference)

Set the resourceReference property: resourceReference.

MicrosoftGraphTrending withResourceVisualization(MicrosoftGraphResourceVisualization resourceVisualization)

Set the resourceVisualization property: resourceVisualization.

MicrosoftGraphTrending withWeight(Double weight)

Set the weight property: Value indicating how much the document is currently trending.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphTrending

public MicrosoftGraphTrending()

Creates an instance of MicrosoftGraphTrending class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: trending.

Overrides:

MicrosoftGraphTrending.additionalProperties()

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphTrending fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTrending from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

lastModifiedDateTime

public OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: The lastModifiedDateTime property.

Returns:

the lastModifiedDateTime value.

resource

public MicrosoftGraphEntity resource()

Get the resource property: entity.

Returns:

the resource value.

resourceReference

public MicrosoftGraphResourceReference resourceReference()

Get the resourceReference property: resourceReference.

Returns:

the resourceReference value.

resourceVisualization

public MicrosoftGraphResourceVisualization resourceVisualization()

Get the resourceVisualization property: resourceVisualization.

Returns:

the resourceVisualization value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphTrending.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphTrending.validate()

weight

public Double weight()

Get the weight property: Value indicating how much the document is currently trending. The larger the number, the more the document is currently trending around the user (the more relevant it is). Returned documents are sorted by this value.

Returns:

the weight value.

withAdditionalProperties

public MicrosoftGraphTrending withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: trending.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphTrending object itself.

withId

public MicrosoftGraphTrending withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphTrending.withId(String id)

Parameters:

id

withLastModifiedDateTime

public MicrosoftGraphTrending withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: The lastModifiedDateTime property.

Parameters:

lastModifiedDateTime - the lastModifiedDateTime value to set.

Returns:

the MicrosoftGraphTrending object itself.

withResource

public MicrosoftGraphTrending withResource(MicrosoftGraphEntity resource)

Set the resource property: entity.

Parameters:

resource - the resource value to set.

Returns:

the MicrosoftGraphTrending object itself.

withResourceReference

public MicrosoftGraphTrending withResourceReference(MicrosoftGraphResourceReference resourceReference)

Set the resourceReference property: resourceReference.

Parameters:

resourceReference - the resourceReference value to set.

Returns:

the MicrosoftGraphTrending object itself.

withResourceVisualization

public MicrosoftGraphTrending withResourceVisualization(MicrosoftGraphResourceVisualization resourceVisualization)

Set the resourceVisualization property: resourceVisualization.

Parameters:

resourceVisualization - the resourceVisualization value to set.

Returns:

the MicrosoftGraphTrending object itself.

withWeight

public MicrosoftGraphTrending withWeight(Double weight)

Set the weight property: Value indicating how much the document is currently trending. The larger the number, the more the document is currently trending around the user (the more relevant it is). Returned documents are sorted by this value.

Parameters:

weight - the weight value to set.

Returns:

the MicrosoftGraphTrending object itself.

Applies to