// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.analytics.synapse.spark.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** The SparkSessionCollection model. */
@Fluent
public final class SparkSessionCollection {
    /*
     * The from property.
     */
    @JsonProperty(value = "from", required = true)
    private int from;

    /*
     * The total property.
     */
    @JsonProperty(value = "total", required = true)
    private int total;

    /*
     * The sessions property.
     */
    @JsonProperty(value = "sessions")
    private List<SparkSession> sessions;

    /**
     * Get the from property: The from property.
     *
     * @return the from value.
     */
    public int getFrom() {
        return this.from;
    }

    /**
     * Set the from property: The from property.
     *
     * @param from the from value to set.
     * @return the SparkSessionCollection object itself.
     */
    public SparkSessionCollection setFrom(int from) {
        this.from = from;
        return this;
    }

    /**
     * Get the total property: The total property.
     *
     * @return the total value.
     */
    public int getTotal() {
        return this.total;
    }

    /**
     * Set the total property: The total property.
     *
     * @param total the total value to set.
     * @return the SparkSessionCollection object itself.
     */
    public SparkSessionCollection setTotal(int total) {
        this.total = total;
        return this;
    }

    /**
     * Get the sessions property: The sessions property.
     *
     * @return the sessions value.
     */
    public List<SparkSession> getSessions() {
        return this.sessions;
    }

    /**
     * Set the sessions property: The sessions property.
     *
     * @param sessions the sessions value to set.
     * @return the SparkSessionCollection object itself.
     */
    public SparkSessionCollection setSessions(List<SparkSession> sessions) {
        this.sessions = sessions;
        return this;
    }
}
