MicrosoftGraphOutlookCategory Class

public final class MicrosoftGraphOutlookCategory
extends MicrosoftGraphEntity

outlookCategory.

Constructor Summary

Constructor Description
MicrosoftGraphOutlookCategory()

Creates an instance of MicrosoftGraphOutlookCategory class.

Method Summary

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

Get the additionalProperties property: outlookCategory.

MicrosoftGraphCategoryColor color()

Get the color property: categoryColor.

String displayName()

Get the displayName property: A unique name that identifies a category in the user's mailbox.

static MicrosoftGraphOutlookCategory fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphOutlookCategory from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphOutlookCategory withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: outlookCategory.

MicrosoftGraphOutlookCategory withColor(MicrosoftGraphCategoryColor color)

Set the color property: categoryColor.

MicrosoftGraphOutlookCategory withDisplayName(String displayName)

Set the displayName property: A unique name that identifies a category in the user's mailbox.

MicrosoftGraphOutlookCategory withId(String id)

Set the id property: Read-only.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphOutlookCategory

public MicrosoftGraphOutlookCategory()

Creates an instance of MicrosoftGraphOutlookCategory class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: outlookCategory.

Overrides:

MicrosoftGraphOutlookCategory.additionalProperties()

Returns:

the additionalProperties value.

color

public MicrosoftGraphCategoryColor color()

Get the color property: categoryColor.

Returns:

the color value.

displayName

public String displayName()

Get the displayName property: A unique name that identifies a category in the user's mailbox. After a category is created, the name cannot be changed. Read-only.

Returns:

the displayName value.

fromJson

public static MicrosoftGraphOutlookCategory fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphOutlookCategory from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphOutlookCategory.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphOutlookCategory.validate()

withAdditionalProperties

public MicrosoftGraphOutlookCategory withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: outlookCategory.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphOutlookCategory object itself.

withColor

public MicrosoftGraphOutlookCategory withColor(MicrosoftGraphCategoryColor color)

Set the color property: categoryColor.

Parameters:

color - the color value to set.

Returns:

the MicrosoftGraphOutlookCategory object itself.

withDisplayName

public MicrosoftGraphOutlookCategory withDisplayName(String displayName)

Set the displayName property: A unique name that identifies a category in the user's mailbox. After a category is created, the name cannot be changed. Read-only.

Parameters:

displayName - the displayName value to set.

Returns:

the MicrosoftGraphOutlookCategory object itself.

withId

public MicrosoftGraphOutlookCategory withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphOutlookCategory.withId(String id)

Parameters:

id

Applies to