// 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 SparkStatementCollection model. */
@Fluent
public final class SparkStatementCollection {
    /*
     * The total_statements property.
     */
    @JsonProperty(value = "total_statements", required = true)
    private int total;

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

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

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

    /**
     * Get the statements property: The statements property.
     *
     * @return the statements value.
     */
    public List<SparkStatement> getStatements() {
        return this.statements;
    }

    /**
     * Set the statements property: The statements property.
     *
     * @param statements the statements value to set.
     * @return the SparkStatementCollection object itself.
     */
    public SparkStatementCollection setStatements(List<SparkStatement> statements) {
        this.statements = statements;
        return this;
    }
}
