MicrosoftGraphWorkbookChartLegend Class

public final class MicrosoftGraphWorkbookChartLegend
extends MicrosoftGraphEntity

workbookChartLegend.

Constructor Summary

Constructor Description
MicrosoftGraphWorkbookChartLegend()

Creates an instance of MicrosoftGraphWorkbookChartLegend class.

Method Summary

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

Get the additionalProperties property: workbookChartLegend.

MicrosoftGraphWorkbookChartLegendFormat format()

Get the format property: workbookChartLegendFormat.

static MicrosoftGraphWorkbookChartLegend fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphWorkbookChartLegend from the JsonReader.

Boolean overlay()

Get the overlay property: Boolean value for whether the chart legend should overlap with the main body of the chart.

String position()

Get the position property: Represents the position of the legend on the chart.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Boolean visible()

Get the visible property: A boolean value the represents the visibility of a ChartLegend object.

MicrosoftGraphWorkbookChartLegend withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: workbookChartLegend.

MicrosoftGraphWorkbookChartLegend withFormat(MicrosoftGraphWorkbookChartLegendFormat format)

Set the format property: workbookChartLegendFormat.

MicrosoftGraphWorkbookChartLegend withId(String id)

Set the id property: Read-only.

MicrosoftGraphWorkbookChartLegend withOverlay(Boolean overlay)

Set the overlay property: Boolean value for whether the chart legend should overlap with the main body of the chart.

MicrosoftGraphWorkbookChartLegend withPosition(String position)

Set the position property: Represents the position of the legend on the chart.

MicrosoftGraphWorkbookChartLegend withVisible(Boolean visible)

Set the visible property: A boolean value the represents the visibility of a ChartLegend object.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphWorkbookChartLegend

public MicrosoftGraphWorkbookChartLegend()

Creates an instance of MicrosoftGraphWorkbookChartLegend class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: workbookChartLegend.

Overrides:

MicrosoftGraphWorkbookChartLegend.additionalProperties()

Returns:

the additionalProperties value.

format

public MicrosoftGraphWorkbookChartLegendFormat format()

Get the format property: workbookChartLegendFormat.

Returns:

the format value.

fromJson

public static MicrosoftGraphWorkbookChartLegend fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphWorkbookChartLegend from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

overlay

public Boolean overlay()

Get the overlay property: Boolean value for whether the chart legend should overlap with the main body of the chart.

Returns:

the overlay value.

position

public String position()

Get the position property: Represents the position of the legend on the chart. The possible values are: Top, Bottom, Left, Right, Corner, Custom.

Returns:

the position value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphWorkbookChartLegend.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphWorkbookChartLegend.validate()

visible

public Boolean visible()

Get the visible property: A boolean value the represents the visibility of a ChartLegend object.

Returns:

the visible value.

withAdditionalProperties

public MicrosoftGraphWorkbookChartLegend withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: workbookChartLegend.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphWorkbookChartLegend object itself.

withFormat

public MicrosoftGraphWorkbookChartLegend withFormat(MicrosoftGraphWorkbookChartLegendFormat format)

Set the format property: workbookChartLegendFormat.

Parameters:

format - the format value to set.

Returns:

the MicrosoftGraphWorkbookChartLegend object itself.

withId

public MicrosoftGraphWorkbookChartLegend withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphWorkbookChartLegend.withId(String id)

Parameters:

id

withOverlay

public MicrosoftGraphWorkbookChartLegend withOverlay(Boolean overlay)

Set the overlay property: Boolean value for whether the chart legend should overlap with the main body of the chart.

Parameters:

overlay - the overlay value to set.

Returns:

the MicrosoftGraphWorkbookChartLegend object itself.

withPosition

public MicrosoftGraphWorkbookChartLegend withPosition(String position)

Set the position property: Represents the position of the legend on the chart. The possible values are: Top, Bottom, Left, Right, Corner, Custom.

Parameters:

position - the position value to set.

Returns:

the MicrosoftGraphWorkbookChartLegend object itself.

withVisible

public MicrosoftGraphWorkbookChartLegend withVisible(Boolean visible)

Set the visible property: A boolean value the represents the visibility of a ChartLegend object.

Parameters:

visible - the visible value to set.

Returns:

the MicrosoftGraphWorkbookChartLegend object itself.

Applies to