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

localhost.models.ApiRestV2ConnectionRemovetableRequest 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 ApiRestV2ConnectionRemovetableRequest type.
 */
public class ApiRestV2ConnectionRemovetableRequest {
    private String id;
    private List tables;

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

    /**
     * Initialization constructor.
     * @param  id  String value for id.
     * @param  tables  List of TableInput value for tables.
     */
    public ApiRestV2ConnectionRemovetableRequest(
            String id,
            List tables) {
        this.id = id;
        this.tables = tables;
    }

    /**
     * Getter for Id.
     * GUID of the connection
     * @return Returns the String
     */
    @JsonGetter("id")
    public String getId() {
        return id;
    }

    /**
     * Setter for Id.
     * GUID of the connection
     * @param id Value for String
     */
    @JsonSetter("id")
    public void setId(String id) {
        this.id = id;
    }

    /**
     * Getter for Tables.
     * A JSON array of name or GUIDs of the table or both. At least one input is required. Provide
     * either table name or id. When both are given then id is considered
     * @return Returns the List of TableInput
     */
    @JsonGetter("tables")
    public List getTables() {
        return tables;
    }

    /**
     * Setter for Tables.
     * A JSON array of name or GUIDs of the table or both. At least one input is required. Provide
     * either table name or id. When both are given then id is considered
     * @param tables Value for List of TableInput
     */
    @JsonSetter("tables")
    public void setTables(List tables) {
        this.tables = tables;
    }

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

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

    /**
     * Class to build instances of {@link ApiRestV2ConnectionRemovetableRequest}.
     */
    public static class Builder {
        private String id;
        private List tables;

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

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

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

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

        /**
         * Builds a new {@link ApiRestV2ConnectionRemovetableRequest} object using the set fields.
         * @return {@link ApiRestV2ConnectionRemovetableRequest}
         */
        public ApiRestV2ConnectionRemovetableRequest build() {
            return new ApiRestV2ConnectionRemovetableRequest(id, tables);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy