// 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.microsoft.graph.models.WorkbookFunctionResult;
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 Functions Network Days_Intl Parameter Set.
 */
public class WorkbookFunctionsNetworkDays_IntlParameterSet {
    /**
     * The start Date.
     * 
     */
    @SerializedName(value = "startDate", alternate = {"StartDate"})
    @Expose
	@Nullable
    public com.google.gson.JsonElement startDate;

    /**
     * The end Date.
     * 
     */
    @SerializedName(value = "endDate", alternate = {"EndDate"})
    @Expose
	@Nullable
    public com.google.gson.JsonElement endDate;

    /**
     * The weekend.
     * 
     */
    @SerializedName(value = "weekend", alternate = {"Weekend"})
    @Expose
	@Nullable
    public com.google.gson.JsonElement weekend;

    /**
     * The holidays.
     * 
     */
    @SerializedName(value = "holidays", alternate = {"Holidays"})
    @Expose
	@Nullable
    public com.google.gson.JsonElement holidays;


    /**
     * Instiaciates a new WorkbookFunctionsNetworkDays_IntlParameterSet
     */
    public WorkbookFunctionsNetworkDays_IntlParameterSet() {}
    /**
     * Instiaciates a new WorkbookFunctionsNetworkDays_IntlParameterSet
     * @param builder builder bearing the parameters to initialize from
     */
    protected WorkbookFunctionsNetworkDays_IntlParameterSet(@Nonnull final WorkbookFunctionsNetworkDays_IntlParameterSetBuilder builder) {
        this.startDate = builder.startDate;
        this.endDate = builder.endDate;
        this.weekend = builder.weekend;
        this.holidays = builder.holidays;
    }
    /**
     * Gets a new builder for the body
     * @return a new builder
     */
    @Nonnull
    public static WorkbookFunctionsNetworkDays_IntlParameterSetBuilder newBuilder() {
        return new WorkbookFunctionsNetworkDays_IntlParameterSetBuilder();
    }
    /**
     * Fluent builder for the WorkbookFunctionsNetworkDays_IntlParameterSet
     */
    public static final class WorkbookFunctionsNetworkDays_IntlParameterSetBuilder {
        /**
         * The startDate parameter value
         */
        @Nullable
        protected com.google.gson.JsonElement startDate;
        /**
         * Sets the StartDate
         * @param val the value to set it to
         * @return the current builder object
         */
        @Nonnull
        public WorkbookFunctionsNetworkDays_IntlParameterSetBuilder withStartDate(@Nullable final com.google.gson.JsonElement val) {
            this.startDate = val;
            return this;
        }
        /**
         * The endDate parameter value
         */
        @Nullable
        protected com.google.gson.JsonElement endDate;
        /**
         * Sets the EndDate
         * @param val the value to set it to
         * @return the current builder object
         */
        @Nonnull
        public WorkbookFunctionsNetworkDays_IntlParameterSetBuilder withEndDate(@Nullable final com.google.gson.JsonElement val) {
            this.endDate = val;
            return this;
        }
        /**
         * The weekend parameter value
         */
        @Nullable
        protected com.google.gson.JsonElement weekend;
        /**
         * Sets the Weekend
         * @param val the value to set it to
         * @return the current builder object
         */
        @Nonnull
        public WorkbookFunctionsNetworkDays_IntlParameterSetBuilder withWeekend(@Nullable final com.google.gson.JsonElement val) {
            this.weekend = val;
            return this;
        }
        /**
         * The holidays parameter value
         */
        @Nullable
        protected com.google.gson.JsonElement holidays;
        /**
         * Sets the Holidays
         * @param val the value to set it to
         * @return the current builder object
         */
        @Nonnull
        public WorkbookFunctionsNetworkDays_IntlParameterSetBuilder withHolidays(@Nullable final com.google.gson.JsonElement val) {
            this.holidays = val;
            return this;
        }
        /**
         * Instanciates a new WorkbookFunctionsNetworkDays_IntlParameterSetBuilder
         */
        @Nullable
        protected WorkbookFunctionsNetworkDays_IntlParameterSetBuilder(){}
        /**
         * Buils the resulting body object to be passed to the request
         * @return the body object to pass to the request
         */
        @Nonnull
        public WorkbookFunctionsNetworkDays_IntlParameterSet build() {
            return new WorkbookFunctionsNetworkDays_IntlParameterSet(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<com.microsoft.graph.options.FunctionOption> getFunctionOptions() {
        final ArrayList<com.microsoft.graph.options.FunctionOption> result = new ArrayList<>();
        if(this.startDate != null) {
            result.add(new com.microsoft.graph.options.FunctionOption("startDate", startDate));
        }
        if(this.endDate != null) {
            result.add(new com.microsoft.graph.options.FunctionOption("endDate", endDate));
        }
        if(this.weekend != null) {
            result.add(new com.microsoft.graph.options.FunctionOption("weekend", weekend));
        }
        if(this.holidays != null) {
            result.add(new com.microsoft.graph.options.FunctionOption("holidays", holidays));
        }
        return result;
    }
}
