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

com.github.gcauchis.scalablepress4j.model.DesignResponse Maven / Gradle / Ivy

/**
 * The MIT License (MIT)
 *
 * Copyright (c) 2016 Gabriel Cauchis
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
package com.github.gcauchis.scalablepress4j.model;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * The Design Response json object
 * 
 * @author gcauchis
 * @see https://scalablepress.com/docs/#retrieve-design-object
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DesignResponse {
    /** the type of product this design is for. screenprint, dtg, case, mug, or poster */
    private String type;
    /** Time when design was created */
    private String createdAt;
    /** Time when design was deleted */
    private String deletedAt;
    /** {@link DesignValidation Design validation object} */
    private DesignValidation validation;
    /** Array of {@link Customization customization objects} */
    private List customization;
    /** {@link DesignSides Design sides object} */
    private DesignSides sides;
    /** test or live */
    private String mode;
    /** unique design identifier */
    private String designId;

    /**
     * Gets the type of product this design is for. screenprint, dtg, case, mug, or poster.
     *
     * @return the type of product this design is for. screenprint, dtg, case, mug, or poster
     */
    public String getType() {
        return type;
    }

    /**
     * Sets the type of product this design is for. screenprint, dtg, case, mug, or poster.
     *
     * @param type the new type of product this design is for. screenprint, dtg, case, mug, or poster
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * Gets the Time when design was created.
     *
     * @return the Time when design was created
     */
    public String getCreatedAt() {
        return createdAt;
    }

    /**
     * Sets the Time when design was created.
     *
     * @param createdAt the new Time when design was created
     */
    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    /**
     * Gets the Time when design was deleted.
     *
     * @return the Time when design was deleted
     */
    public String getDeletedAt() {
        return deletedAt;
    }

    /**
     * Sets the Time when design was deleted.
     *
     * @param deletedAt the new Time when design was deleted
     */
    public void setDeletedAt(String deletedAt) {
        this.deletedAt = deletedAt;
    }

    /**
     * Gets the {@link DesignValidation Design validation object}.
     *
     * @return the {@link DesignValidation Design validation object}
     */
    public DesignValidation getValidation() {
        return validation;
    }

    /**
     * Sets the {@link DesignValidation Design validation object}.
     *
     * @param validation the new {@link DesignValidation Design validation object}
     */
    public void setValidation(DesignValidation validation) {
        this.validation = validation;
    }

    /**
     * Gets the Array of {@link Customization customization objects}.
     *
     * @return the Array of {@link Customization customization objects}
     */
    public List getCustomization() {
        return customization;
    }

    /**
     * Sets the Array of {@link Customization customization objects}.
     *
     * @param customization the new Array of {@link Customization customization objects}
     */
    public void setCustomization(List customization) {
        this.customization = customization;
    }

    /**
     * Gets the {@link DesignSides Design sides object}.
     *
     * @return the {@link DesignSides Design sides object}
     */
    public DesignSides getSides() {
        return sides;
    }

    /**
     * Sets the {@link DesignSides Design sides object}.
     *
     * @param sides the new {@link DesignSides Design sides object}
     */
    public void setSides(DesignSides sides) {
        this.sides = sides;
    }

    /**
     * Gets the mode test or live.
     *
     * @return the mode test or live
     */
    public String getMode() {
        return mode;
    }

    /**
     * Sets the mode test or live.
     *
     * @param mode the new mode test or live
     */
    public void setMode(String mode) {
        this.mode = mode;
    }

    /**
     * Gets the unique design identifier.
     *
     * @return the unique design identifier
     */
    public String getDesignId() {
        return designId;
    }

    /**
     * Sets the unique design identifier
     *
     * @param designId the new unique design identifier
     */
    public void setDesignId(String designId) {
        this.designId = designId;
    }

    @Override
    public String toString() {
        return "DesignResponse [type=" + type + ", createdAt=" + createdAt
                + ", deletedAt=" + deletedAt + ", validation=" + validation
                + ", customization=" + customization + ", sides=" + sides
                + ", mode=" + mode + ", designId=" + designId + "]";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy