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

com.shell.apitest.models.CardDetailsResponseFuelSetsItems 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 CardDetailsResponseFuelSetsItems type.
 */
public class CardDetailsResponseFuelSetsItems {
    private int productRestrictionId;
    private String description;

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

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

    /**
     * Getter for ProductRestrictionId.
     * product restriction identifier
     * @return Returns the int
     */
    @JsonGetter("ProductRestrictionId")
    public int getProductRestrictionId() {
        return productRestrictionId;
    }

    /**
     * Setter for ProductRestrictionId.
     * product restriction identifier
     * @param productRestrictionId Value for int
     */
    @JsonSetter("ProductRestrictionId")
    public void setProductRestrictionId(int productRestrictionId) {
        this.productRestrictionId = productRestrictionId;
    }

    /**
     * Getter for Description.
     * product set description.
     * @return Returns the String
     */
    @JsonGetter("Description")
    public String getDescription() {
        return description;
    }

    /**
     * Setter for Description.
     * product set description.
     * @param description Value for String
     */
    @JsonSetter("Description")
    public void setDescription(String description) {
        this.description = description;
    }

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

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

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

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

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

        /**
         * Setter for productRestrictionId.
         * @param  productRestrictionId  int value for productRestrictionId.
         * @return Builder
         */
        public Builder productRestrictionId(int productRestrictionId) {
            this.productRestrictionId = productRestrictionId;
            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 CardDetailsResponseFuelSetsItems} object using the set fields.
         * @return {@link CardDetailsResponseFuelSetsItems}
         */
        public CardDetailsResponseFuelSetsItems build() {
            return new CardDetailsResponseFuelSetsItems(productRestrictionId, description);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy