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

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

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

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

    /**
     * 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 Table.
     * @return Returns the List of TableInput
     */
    @JsonGetter("table")
    public List getTable() {
        return table;
    }

    /**
     * Setter for Table.
     * @param table Value for List of TableInput
     */
    @JsonSetter("table")
    public void setTable(List table) {
        this.table = table;
    }

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

    /**
     * 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(id, table);
        return builder;
    }

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

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy