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

com.shell.apitest.models.ProductAllOf0 Maven / Gradle / Ivy

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

package com.shell.apitest.models;

import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonSetter;

/**
 * This is a model class for ProductAllOf0 type.
 */
public class ProductAllOf0 {
    private String globalProductCode;
    private String description;

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

    /**
     * Initialization constructor.
     * @param  globalProductCode  String value for globalProductCode.
     * @param  description  String value for description.
     */
    public ProductAllOf0(
            String globalProductCode,
            String description) {
        this.globalProductCode = globalProductCode;
        this.description = description;
    }

    /**
     * Getter for GlobalProductCode.
     * The productCode returned by the Gateway API. Example: 021
     * @return Returns the String
     */
    @JsonGetter("GlobalProductCode")
    public String getGlobalProductCode() {
        return globalProductCode;
    }

    /**
     * Setter for GlobalProductCode.
     * The productCode returned by the Gateway API. Example: 021
     * @param globalProductCode Value for String
     */
    @JsonSetter("GlobalProductCode")
    public void setGlobalProductCode(String globalProductCode) {
        this.globalProductCode = globalProductCode;
    }

    /**
     * Getter for Description.
     * The description returned by the Gateway API.
     * @return Returns the String
     */
    @JsonGetter("Description")
    public String getDescription() {
        return description;
    }

    /**
     * Setter for Description.
     * The description returned by the Gateway API.
     * @param description Value for String
     */
    @JsonSetter("Description")
    public void setDescription(String description) {
        this.description = description;
    }

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

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

    /**
     * Class to build instances of {@link ProductAllOf0}.
     */
    public static class Builder {
        private String globalProductCode;
        private String description;

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

        /**
         * Initialization constructor.
         * @param  globalProductCode  String value for globalProductCode.
         * @param  description  String value for description.
         */
        public Builder(String globalProductCode, String description) {
            this.globalProductCode = globalProductCode;
            this.description = description;
        }

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

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

        /**
         * Builds a new {@link ProductAllOf0} object using the set fields.
         * @return {@link ProductAllOf0}
         */
        public ProductAllOf0 build() {
            return new ProductAllOf0(globalProductCode, description);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy