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

com.apitable.client.api.model.CreateFieldRequest Maven / Gradle / Ivy

The newest version!
package com.apitable.client.api.model;

import com.apitable.client.api.model.field.FieldTypeEnum;
import com.apitable.client.api.model.field.property.BaseFieldProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

public class CreateFieldRequest  {

    /**
     * field type
     * @see FieldTypeEnum
     */
    private String type;

    /**
     * field name
     */
    private String name;

    /**
     * field property
     * @see BaseFieldProperty
     * value: BaseFieldProperty or it's subtype class
     */
    @JsonInclude(Include.NON_EMPTY)
    private T property;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public T getProperty() {
        return property;
    }

    public void setProperty(T property) {
        this.property = property;
    }

    @Override
    public String toString() {
        return "CreateFieldRequest{" +
                "type='" + type + '\'' +
                ", name='" + name + '\'' +
                ", property=" + property +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy