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

localhost.models.TspublicRestV2DatabaseTableRunqueryRequest Maven / Gradle / Ivy

/*
 * RESTAPISDKLib
 *
 * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
 */

package localhost.models;

import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonSetter;
import java.util.List;

/**
 * This is a model class for TspublicRestV2DatabaseTableRunqueryRequest type.
 */
public class TspublicRestV2DatabaseTableRunqueryRequest {
    private List statement;

    /**
     * Default constructor.
     */
    public TspublicRestV2DatabaseTableRunqueryRequest() {
    }

    /**
     * Initialization constructor.
     * @param  statement  List of String value for statement.
     */
    public TspublicRestV2DatabaseTableRunqueryRequest(
            List statement) {
        this.statement = statement;
    }

    /**
     * Getter for Statement.
     * A JSON array of TQL statements. Each TQL statement should end with semi-colon (;). The TQL
     * operations that can be run through this API are restricted to create database and schema,
     * alter table, delete and update table rows. If a TQL statement fails, then the subsequent
     * statements in the array are not run. Example: alter table test_db.test_schema.test_table drop
     * contraint primary key;
     * @return Returns the List of String
     */
    @JsonGetter("statement")
    public List getStatement() {
        return statement;
    }

    /**
     * Setter for Statement.
     * A JSON array of TQL statements. Each TQL statement should end with semi-colon (;). The TQL
     * operations that can be run through this API are restricted to create database and schema,
     * alter table, delete and update table rows. If a TQL statement fails, then the subsequent
     * statements in the array are not run. Example: alter table test_db.test_schema.test_table drop
     * contraint primary key;
     * @param statement Value for List of String
     */
    @JsonSetter("statement")
    public void setStatement(List statement) {
        this.statement = statement;
    }

    /**
     * Converts this TspublicRestV2DatabaseTableRunqueryRequest into string format.
     * @return String representation of this class
     */
    @Override
    public String toString() {
        return "TspublicRestV2DatabaseTableRunqueryRequest [" + "statement=" + statement + "]";
    }

    /**
     * Builds a new {@link Builder} object.
     * Creates the instance with the state of the current model.
     * @return a new {@link Builder} object
     */
    public Builder toBuilder() {
        Builder builder = new Builder(statement);
        return builder;
    }

    /**
     * Class to build instances of {@link TspublicRestV2DatabaseTableRunqueryRequest}.
     */
    public static class Builder {
        private List statement;

        /**
         * Initialization constructor.
         */
        public Builder() {
        }

        /**
         * Initialization constructor.
         * @param  statement  List of String value for statement.
         */
        public Builder(List statement) {
            this.statement = statement;
        }

        /**
         * Setter for statement.
         * @param  statement  List of String value for statement.
         * @return Builder
         */
        public Builder statement(List statement) {
            this.statement = statement;
            return this;
        }

        /**
         * Builds a new {@link TspublicRestV2DatabaseTableRunqueryRequest} object using the set
         * fields.
         * @return {@link TspublicRestV2DatabaseTableRunqueryRequest}
         */
        public TspublicRestV2DatabaseTableRunqueryRequest build() {
            return new TspublicRestV2DatabaseTableRunqueryRequest(statement);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy