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

MicrosoftGraphVisualInfo Class

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

Implements

public final class MicrosoftGraphVisualInfo
implements JsonSerializable<MicrosoftGraphVisualInfo>

visualInfo.

Constructor Summary

Constructor Description
MicrosoftGraphVisualInfo()

Creates an instance of MicrosoftGraphVisualInfo class.

Method Summary

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

Get the additionalProperties property: visualInfo.

MicrosoftGraphImageInfo attribution()

Get the attribution property: imageInfo.

String backgroundColor()

Get the backgroundColor property: Optional.

Map<String,Object> content()

Get the content property: Json.

String description()

Get the description property: The description property.

String displayText()

Get the displayText property: Required.

static MicrosoftGraphVisualInfo fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphVisualInfo from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphVisualInfo withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: visualInfo.

MicrosoftGraphVisualInfo withAttribution(MicrosoftGraphImageInfo attribution)

Set the attribution property: imageInfo.

MicrosoftGraphVisualInfo withBackgroundColor(String backgroundColor)

Set the backgroundColor property: Optional.

MicrosoftGraphVisualInfo withContent(Map<String,Object> content)

Set the content property: Json.

MicrosoftGraphVisualInfo withDescription(String description)

Set the description property: The description property.

MicrosoftGraphVisualInfo withDisplayText(String displayText)

Set the displayText property: Required.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphVisualInfo

public MicrosoftGraphVisualInfo()

Creates an instance of MicrosoftGraphVisualInfo class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: visualInfo.

Returns:

the additionalProperties value.

attribution

public MicrosoftGraphImageInfo attribution()

Get the attribution property: imageInfo.

Returns:

the attribution value.

backgroundColor

public String backgroundColor()

Get the backgroundColor property: Optional. Background color used to render the activity in the UI - brand color for the application source of the activity. Must be a valid hex color.

Returns:

the backgroundColor value.

content

public Map content()

Get the content property: Json.

Returns:

the content value.

description

public String description()

Get the description property: The description property.

Returns:

the description value.

displayText

public String displayText()

Get the displayText property: Required. Short text description of the user's unique activity (for example, document name in cases where an activity refers to document creation).

Returns:

the displayText value.

fromJson

public static MicrosoftGraphVisualInfo fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphVisualInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphVisualInfo withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: visualInfo.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphVisualInfo object itself.

withAttribution

public MicrosoftGraphVisualInfo withAttribution(MicrosoftGraphImageInfo attribution)

Set the attribution property: imageInfo.

Parameters:

attribution - the attribution value to set.

Returns:

the MicrosoftGraphVisualInfo object itself.

withBackgroundColor

public MicrosoftGraphVisualInfo withBackgroundColor(String backgroundColor)

Set the backgroundColor property: Optional. Background color used to render the activity in the UI - brand color for the application source of the activity. Must be a valid hex color.

Parameters:

backgroundColor - the backgroundColor value to set.

Returns:

the MicrosoftGraphVisualInfo object itself.

withContent

public MicrosoftGraphVisualInfo withContent(Map content)

Set the content property: Json.

Parameters:

content - the content value to set.

Returns:

the MicrosoftGraphVisualInfo object itself.

withDescription

public MicrosoftGraphVisualInfo withDescription(String description)

Set the description property: The description property.

Parameters:

description - the description value to set.

Returns:

the MicrosoftGraphVisualInfo object itself.

withDisplayText

public MicrosoftGraphVisualInfo withDisplayText(String displayText)

Set the displayText property: Required. Short text description of the user's unique activity (for example, document name in cases where an activity refers to document creation).

Parameters:

displayText - the displayText value to set.

Returns:

the MicrosoftGraphVisualInfo object itself.

Applies to