MicrosoftGraphWorkbookSortField Class

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

Implements

public final class MicrosoftGraphWorkbookSortField
implements JsonSerializable<MicrosoftGraphWorkbookSortField>

workbookSortField.

Constructor Summary

Constructor Description
MicrosoftGraphWorkbookSortField()

Creates an instance of MicrosoftGraphWorkbookSortField class.

Method Summary

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

Get the additionalProperties property: workbookSortField.

Boolean ascending()

Get the ascending property: Represents whether the sorting is done in an ascending fashion.

String color()

Get the color property: Represents the color that is the target of the condition if the sorting is on font or cell color.

String dataOption()

Get the dataOption property: Represents additional sorting options for this field.

static MicrosoftGraphWorkbookSortField fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphWorkbookSortField from the JsonReader.

MicrosoftGraphWorkbookIcon icon()

Get the icon property: workbookIcon.

Integer key()

Get the key property: Represents the column (or row, depending on the sort orientation) that the condition is on.

String sortOn()

Get the sortOn property: Represents the type of sorting of this condition.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphWorkbookSortField withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: workbookSortField.

MicrosoftGraphWorkbookSortField withAscending(Boolean ascending)

Set the ascending property: Represents whether the sorting is done in an ascending fashion.

MicrosoftGraphWorkbookSortField withColor(String color)

Set the color property: Represents the color that is the target of the condition if the sorting is on font or cell color.

MicrosoftGraphWorkbookSortField withDataOption(String dataOption)

Set the dataOption property: Represents additional sorting options for this field.

MicrosoftGraphWorkbookSortField withIcon(MicrosoftGraphWorkbookIcon icon)

Set the icon property: workbookIcon.

MicrosoftGraphWorkbookSortField withKey(Integer key)

Set the key property: Represents the column (or row, depending on the sort orientation) that the condition is on.

MicrosoftGraphWorkbookSortField withSortOn(String sortOn)

Set the sortOn property: Represents the type of sorting of this condition.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphWorkbookSortField

public MicrosoftGraphWorkbookSortField()

Creates an instance of MicrosoftGraphWorkbookSortField class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: workbookSortField.

Returns:

the additionalProperties value.

ascending

public Boolean ascending()

Get the ascending property: Represents whether the sorting is done in an ascending fashion.

Returns:

the ascending value.

color

public String color()

Get the color property: Represents the color that is the target of the condition if the sorting is on font or cell color.

Returns:

the color value.

dataOption

public String dataOption()

Get the dataOption property: Represents additional sorting options for this field. The possible values are: Normal, TextAsNumber.

Returns:

the dataOption value.

fromJson

public static MicrosoftGraphWorkbookSortField fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphWorkbookSortField from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

icon

public MicrosoftGraphWorkbookIcon icon()

Get the icon property: workbookIcon.

Returns:

the icon value.

key

public Integer key()

Get the key property: Represents the column (or row, depending on the sort orientation) that the condition is on. Represented as an offset from the first column (or row).

Returns:

the key value.

sortOn

public String sortOn()

Get the sortOn property: Represents the type of sorting of this condition. The possible values are: Value, CellColor, FontColor, Icon.

Returns:

the sortOn value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphWorkbookSortField withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: workbookSortField.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphWorkbookSortField object itself.

withAscending

public MicrosoftGraphWorkbookSortField withAscending(Boolean ascending)

Set the ascending property: Represents whether the sorting is done in an ascending fashion.

Parameters:

ascending - the ascending value to set.

Returns:

the MicrosoftGraphWorkbookSortField object itself.

withColor

public MicrosoftGraphWorkbookSortField withColor(String color)

Set the color property: Represents the color that is the target of the condition if the sorting is on font or cell color.

Parameters:

color - the color value to set.

Returns:

the MicrosoftGraphWorkbookSortField object itself.

withDataOption

public MicrosoftGraphWorkbookSortField withDataOption(String dataOption)

Set the dataOption property: Represents additional sorting options for this field. The possible values are: Normal, TextAsNumber.

Parameters:

dataOption - the dataOption value to set.

Returns:

the MicrosoftGraphWorkbookSortField object itself.

withIcon

public MicrosoftGraphWorkbookSortField withIcon(MicrosoftGraphWorkbookIcon icon)

Set the icon property: workbookIcon.

Parameters:

icon - the icon value to set.

Returns:

the MicrosoftGraphWorkbookSortField object itself.

withKey

public MicrosoftGraphWorkbookSortField withKey(Integer key)

Set the key property: Represents the column (or row, depending on the sort orientation) that the condition is on. Represented as an offset from the first column (or row).

Parameters:

key - the key value to set.

Returns:

the MicrosoftGraphWorkbookSortField object itself.

withSortOn

public MicrosoftGraphWorkbookSortField withSortOn(String sortOn)

Set the sortOn property: Represents the type of sorting of this condition. The possible values are: Value, CellColor, FontColor, Icon.

Parameters:

sortOn - the sortOn value to set.

Returns:

the MicrosoftGraphWorkbookSortField object itself.

Applies to