All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.graph.generated.models.WorkbookChart Maven / Gradle / Ivy

There is a newer version: 6.25.1
Show newest version
package com.microsoft.graph.models;

import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class WorkbookChart extends Entity implements Parsable {
    /**
     * Instantiates a new {@link WorkbookChart} and sets the default values.
     */
    public WorkbookChart() {
        super();
    }
    /**
     * Creates a new instance of the appropriate class based on discriminator value
     * @param parseNode The parse node to use to read the discriminator value and create the object
     * @return a {@link WorkbookChart}
     */
    @jakarta.annotation.Nonnull
    public static WorkbookChart createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
        Objects.requireNonNull(parseNode);
        return new WorkbookChart();
    }
    /**
     * Gets the axes property value. Represents chart axes. Read-only.
     * @return a {@link WorkbookChartAxes}
     */
    @jakarta.annotation.Nullable
    public WorkbookChartAxes getAxes() {
        return this.backingStore.get("axes");
    }
    /**
     * Gets the dataLabels property value. Represents the data labels on the chart. Read-only.
     * @return a {@link WorkbookChartDataLabels}
     */
    @jakarta.annotation.Nullable
    public WorkbookChartDataLabels getDataLabels() {
        return this.backingStore.get("dataLabels");
    }
    /**
     * The deserialization information for the current model
     * @return a {@link Map>}
     */
    @jakarta.annotation.Nonnull
    public Map> getFieldDeserializers() {
        final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
        deserializerMap.put("axes", (n) -> { this.setAxes(n.getObjectValue(WorkbookChartAxes::createFromDiscriminatorValue)); });
        deserializerMap.put("dataLabels", (n) -> { this.setDataLabels(n.getObjectValue(WorkbookChartDataLabels::createFromDiscriminatorValue)); });
        deserializerMap.put("format", (n) -> { this.setFormat(n.getObjectValue(WorkbookChartAreaFormat::createFromDiscriminatorValue)); });
        deserializerMap.put("height", (n) -> { this.setHeight(n.getDoubleValue()); });
        deserializerMap.put("left", (n) -> { this.setLeft(n.getDoubleValue()); });
        deserializerMap.put("legend", (n) -> { this.setLegend(n.getObjectValue(WorkbookChartLegend::createFromDiscriminatorValue)); });
        deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); });
        deserializerMap.put("series", (n) -> { this.setSeries(n.getCollectionOfObjectValues(WorkbookChartSeries::createFromDiscriminatorValue)); });
        deserializerMap.put("title", (n) -> { this.setTitle(n.getObjectValue(WorkbookChartTitle::createFromDiscriminatorValue)); });
        deserializerMap.put("top", (n) -> { this.setTop(n.getDoubleValue()); });
        deserializerMap.put("width", (n) -> { this.setWidth(n.getDoubleValue()); });
        deserializerMap.put("worksheet", (n) -> { this.setWorksheet(n.getObjectValue(WorkbookWorksheet::createFromDiscriminatorValue)); });
        return deserializerMap;
    }
    /**
     * Gets the format property value. Encapsulates the format properties for the chart area. Read-only.
     * @return a {@link WorkbookChartAreaFormat}
     */
    @jakarta.annotation.Nullable
    public WorkbookChartAreaFormat getFormat() {
        return this.backingStore.get("format");
    }
    /**
     * Gets the height property value. Represents the height, in points, of the chart object.
     * @return a {@link Double}
     */
    @jakarta.annotation.Nullable
    public Double getHeight() {
        return this.backingStore.get("height");
    }
    /**
     * Gets the left property value. The distance, in points, from the left side of the chart to the worksheet origin.
     * @return a {@link Double}
     */
    @jakarta.annotation.Nullable
    public Double getLeft() {
        return this.backingStore.get("left");
    }
    /**
     * Gets the legend property value. Represents the legend for the chart. Read-only.
     * @return a {@link WorkbookChartLegend}
     */
    @jakarta.annotation.Nullable
    public WorkbookChartLegend getLegend() {
        return this.backingStore.get("legend");
    }
    /**
     * Gets the name property value. Represents the name of a chart object.
     * @return a {@link String}
     */
    @jakarta.annotation.Nullable
    public String getName() {
        return this.backingStore.get("name");
    }
    /**
     * Gets the series property value. Represents either a single series or collection of series in the chart. Read-only.
     * @return a {@link java.util.List}
     */
    @jakarta.annotation.Nullable
    public java.util.List getSeries() {
        return this.backingStore.get("series");
    }
    /**
     * Gets the title property value. Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only.
     * @return a {@link WorkbookChartTitle}
     */
    @jakarta.annotation.Nullable
    public WorkbookChartTitle getTitle() {
        return this.backingStore.get("title");
    }
    /**
     * Gets the top property value. Represents the distance, in points, from the top edge of the object to the top of row 1 (on a worksheet) or the top of the chart area (on a chart).
     * @return a {@link Double}
     */
    @jakarta.annotation.Nullable
    public Double getTop() {
        return this.backingStore.get("top");
    }
    /**
     * Gets the width property value. Represents the width, in points, of the chart object.
     * @return a {@link Double}
     */
    @jakarta.annotation.Nullable
    public Double getWidth() {
        return this.backingStore.get("width");
    }
    /**
     * Gets the worksheet property value. The worksheet containing the current chart. Read-only.
     * @return a {@link WorkbookWorksheet}
     */
    @jakarta.annotation.Nullable
    public WorkbookWorksheet getWorksheet() {
        return this.backingStore.get("worksheet");
    }
    /**
     * Serializes information the current object
     * @param writer Serialization writer to use to serialize this model
     */
    public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
        Objects.requireNonNull(writer);
        super.serialize(writer);
        writer.writeObjectValue("axes", this.getAxes());
        writer.writeObjectValue("dataLabels", this.getDataLabels());
        writer.writeObjectValue("format", this.getFormat());
        writer.writeDoubleValue("height", this.getHeight());
        writer.writeDoubleValue("left", this.getLeft());
        writer.writeObjectValue("legend", this.getLegend());
        writer.writeStringValue("name", this.getName());
        writer.writeCollectionOfObjectValues("series", this.getSeries());
        writer.writeObjectValue("title", this.getTitle());
        writer.writeDoubleValue("top", this.getTop());
        writer.writeDoubleValue("width", this.getWidth());
        writer.writeObjectValue("worksheet", this.getWorksheet());
    }
    /**
     * Sets the axes property value. Represents chart axes. Read-only.
     * @param value Value to set for the axes property.
     */
    public void setAxes(@jakarta.annotation.Nullable final WorkbookChartAxes value) {
        this.backingStore.set("axes", value);
    }
    /**
     * Sets the dataLabels property value. Represents the data labels on the chart. Read-only.
     * @param value Value to set for the dataLabels property.
     */
    public void setDataLabels(@jakarta.annotation.Nullable final WorkbookChartDataLabels value) {
        this.backingStore.set("dataLabels", value);
    }
    /**
     * Sets the format property value. Encapsulates the format properties for the chart area. Read-only.
     * @param value Value to set for the format property.
     */
    public void setFormat(@jakarta.annotation.Nullable final WorkbookChartAreaFormat value) {
        this.backingStore.set("format", value);
    }
    /**
     * Sets the height property value. Represents the height, in points, of the chart object.
     * @param value Value to set for the height property.
     */
    public void setHeight(@jakarta.annotation.Nullable final Double value) {
        this.backingStore.set("height", value);
    }
    /**
     * Sets the left property value. The distance, in points, from the left side of the chart to the worksheet origin.
     * @param value Value to set for the left property.
     */
    public void setLeft(@jakarta.annotation.Nullable final Double value) {
        this.backingStore.set("left", value);
    }
    /**
     * Sets the legend property value. Represents the legend for the chart. Read-only.
     * @param value Value to set for the legend property.
     */
    public void setLegend(@jakarta.annotation.Nullable final WorkbookChartLegend value) {
        this.backingStore.set("legend", value);
    }
    /**
     * Sets the name property value. Represents the name of a chart object.
     * @param value Value to set for the name property.
     */
    public void setName(@jakarta.annotation.Nullable final String value) {
        this.backingStore.set("name", value);
    }
    /**
     * Sets the series property value. Represents either a single series or collection of series in the chart. Read-only.
     * @param value Value to set for the series property.
     */
    public void setSeries(@jakarta.annotation.Nullable final java.util.List value) {
        this.backingStore.set("series", value);
    }
    /**
     * Sets the title property value. Represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only.
     * @param value Value to set for the title property.
     */
    public void setTitle(@jakarta.annotation.Nullable final WorkbookChartTitle value) {
        this.backingStore.set("title", value);
    }
    /**
     * Sets the top property value. Represents the distance, in points, from the top edge of the object to the top of row 1 (on a worksheet) or the top of the chart area (on a chart).
     * @param value Value to set for the top property.
     */
    public void setTop(@jakarta.annotation.Nullable final Double value) {
        this.backingStore.set("top", value);
    }
    /**
     * Sets the width property value. Represents the width, in points, of the chart object.
     * @param value Value to set for the width property.
     */
    public void setWidth(@jakarta.annotation.Nullable final Double value) {
        this.backingStore.set("width", value);
    }
    /**
     * Sets the worksheet property value. The worksheet containing the current chart. Read-only.
     * @param value Value to set for the worksheet property.
     */
    public void setWorksheet(@jakarta.annotation.Nullable final WorkbookWorksheet value) {
        this.backingStore.set("worksheet", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy