com.microsoft.graph.models.WorkbookChartSetDataParameterSet Maven / Gradle / Ivy
// Template Source: BaseMethodParameterSet.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import com.google.gson.JsonObject;
import java.util.EnumSet;
import java.util.ArrayList;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Workbook Chart Set Data Parameter Set.
*/
public class WorkbookChartSetDataParameterSet {
/**
* The source Data.
*
*/
@SerializedName(value = "sourceData", alternate = {"SourceData"})
@Expose
@Nullable
public com.google.gson.JsonElement sourceData;
/**
* The series By.
*
*/
@SerializedName(value = "seriesBy", alternate = {"SeriesBy"})
@Expose
@Nullable
public String seriesBy;
/**
* Instiaciates a new WorkbookChartSetDataParameterSet
*/
public WorkbookChartSetDataParameterSet() {}
/**
* Instiaciates a new WorkbookChartSetDataParameterSet
* @param builder builder bearing the parameters to initialize from
*/
protected WorkbookChartSetDataParameterSet(@Nonnull final WorkbookChartSetDataParameterSetBuilder builder) {
this.sourceData = builder.sourceData;
this.seriesBy = builder.seriesBy;
}
/**
* Gets a new builder for the body
* @return a new builder
*/
@Nonnull
public static WorkbookChartSetDataParameterSetBuilder newBuilder() {
return new WorkbookChartSetDataParameterSetBuilder();
}
/**
* Fluent builder for the WorkbookChartSetDataParameterSet
*/
public static final class WorkbookChartSetDataParameterSetBuilder {
/**
* The sourceData parameter value
*/
@Nullable
protected com.google.gson.JsonElement sourceData;
/**
* Sets the SourceData
* @param val the value to set it to
* @return the current builder object
*/
@Nonnull
public WorkbookChartSetDataParameterSetBuilder withSourceData(@Nullable final com.google.gson.JsonElement val) {
this.sourceData = val;
return this;
}
/**
* The seriesBy parameter value
*/
@Nullable
protected String seriesBy;
/**
* Sets the SeriesBy
* @param val the value to set it to
* @return the current builder object
*/
@Nonnull
public WorkbookChartSetDataParameterSetBuilder withSeriesBy(@Nullable final String val) {
this.seriesBy = val;
return this;
}
/**
* Instanciates a new WorkbookChartSetDataParameterSetBuilder
*/
@Nullable
protected WorkbookChartSetDataParameterSetBuilder(){}
/**
* Buils the resulting body object to be passed to the request
* @return the body object to pass to the request
*/
@Nonnull
public WorkbookChartSetDataParameterSet build() {
return new WorkbookChartSetDataParameterSet(this);
}
}
/**
* Gets the functions options from the properties that have been set
* @return a list of function options for the request
*/
@Nonnull
public java.util.List getFunctionOptions() {
final ArrayList result = new ArrayList<>();
if(this.sourceData != null) {
result.add(new com.microsoft.graph.options.FunctionOption("sourceData", sourceData));
}
if(this.seriesBy != null) {
result.add(new com.microsoft.graph.options.FunctionOption("seriesBy", seriesBy));
}
return result;
}
}