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

com.shell.apitest.models.AutoRenewCardResponseDataItems 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.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.apimatic.core.types.OptionalNullable;

/**
 * This is a model class for AutoRenewCardResponseDataItems type.
 */
public class AutoRenewCardResponseDataItems {
    private OptionalNullable autoRenewReferenceId;
    private OptionalNullable cardIdAndPAN;
    private OptionalNullable pANID;

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

    /**
     * Initialization constructor.
     * @param  autoRenewReferenceId  Integer value for autoRenewReferenceId.
     * @param  cardIdAndPAN  String value for cardIdAndPAN.
     * @param  pANID  Double value for pANID.
     */
    public AutoRenewCardResponseDataItems(
            Integer autoRenewReferenceId,
            String cardIdAndPAN,
            Double pANID) {
        this.autoRenewReferenceId = OptionalNullable.of(autoRenewReferenceId);
        this.cardIdAndPAN = OptionalNullable.of(cardIdAndPAN);
        this.pANID = OptionalNullable.of(pANID);
    }

    /**
     * Initialization constructor.
     * @param  autoRenewReferenceId  Integer value for autoRenewReferenceId.
     * @param  cardIdAndPAN  String value for cardIdAndPAN.
     * @param  pANID  Double value for pANID.
     */

    protected AutoRenewCardResponseDataItems(OptionalNullable autoRenewReferenceId,
            OptionalNullable cardIdAndPAN, OptionalNullable pANID) {
        this.autoRenewReferenceId = autoRenewReferenceId;
        this.cardIdAndPAN = cardIdAndPAN;
        this.pANID = pANID;
    }

    /**
     * Internal Getter for AutoRenewReferenceId.
     * CardId and PAN of the card. ;( Semicolon is used as delimiter.
     * @return Returns the Internal Integer
     */
    @JsonGetter("AutoRenewReferenceId")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonSerialize(using = OptionalNullable.Serializer.class)
    protected OptionalNullable internalGetAutoRenewReferenceId() {
        return this.autoRenewReferenceId;
    }

    /**
     * Getter for AutoRenewReferenceId.
     * CardId and PAN of the card. ;( Semicolon is used as delimiter.
     * @return Returns the Integer
     */
    public Integer getAutoRenewReferenceId() {
        return OptionalNullable.getFrom(autoRenewReferenceId);
    }

    /**
     * Setter for AutoRenewReferenceId.
     * CardId and PAN of the card. ;( Semicolon is used as delimiter.
     * @param autoRenewReferenceId Value for Integer
     */
    @JsonSetter("AutoRenewReferenceId")
    public void setAutoRenewReferenceId(Integer autoRenewReferenceId) {
        this.autoRenewReferenceId = OptionalNullable.of(autoRenewReferenceId);
    }

    /**
     * UnSetter for AutoRenewReferenceId.
     * CardId and PAN of the card. ;( Semicolon is used as delimiter.
     */
    public void unsetAutoRenewReferenceId() {
        autoRenewReferenceId = null;
    }

    /**
     * Internal Getter for CardIdAndPAN.
     * Reference number for each individual auto renew card in the order.
     * @return Returns the Internal String
     */
    @JsonGetter("CardIdAndPAN")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonSerialize(using = OptionalNullable.Serializer.class)
    protected OptionalNullable internalGetCardIdAndPAN() {
        return this.cardIdAndPAN;
    }

    /**
     * Getter for CardIdAndPAN.
     * Reference number for each individual auto renew card in the order.
     * @return Returns the String
     */
    public String getCardIdAndPAN() {
        return OptionalNullable.getFrom(cardIdAndPAN);
    }

    /**
     * Setter for CardIdAndPAN.
     * Reference number for each individual auto renew card in the order.
     * @param cardIdAndPAN Value for String
     */
    @JsonSetter("CardIdAndPAN")
    public void setCardIdAndPAN(String cardIdAndPAN) {
        this.cardIdAndPAN = OptionalNullable.of(cardIdAndPAN);
    }

    /**
     * UnSetter for CardIdAndPAN.
     * Reference number for each individual auto renew card in the order.
     */
    public void unsetCardIdAndPAN() {
        cardIdAndPAN = null;
    }

    /**
     * Internal Getter for PANID.
     * PANID of the card
     * @return Returns the Internal Double
     */
    @JsonGetter("PANID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonSerialize(using = OptionalNullable.Serializer.class)
    protected OptionalNullable internalGetPANID() {
        return this.pANID;
    }

    /**
     * Getter for PANID.
     * PANID of the card
     * @return Returns the Double
     */
    public Double getPANID() {
        return OptionalNullable.getFrom(pANID);
    }

    /**
     * Setter for PANID.
     * PANID of the card
     * @param pANID Value for Double
     */
    @JsonSetter("PANID")
    public void setPANID(Double pANID) {
        this.pANID = OptionalNullable.of(pANID);
    }

    /**
     * UnSetter for PANID.
     * PANID of the card
     */
    public void unsetPANID() {
        pANID = null;
    }

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

    /**
     * Builds a new {@link AutoRenewCardResponseDataItems.Builder} object.
     * Creates the instance with the state of the current model.
     * @return a new {@link AutoRenewCardResponseDataItems.Builder} object
     */
    public Builder toBuilder() {
        Builder builder = new Builder();
        builder.autoRenewReferenceId = internalGetAutoRenewReferenceId();
        builder.cardIdAndPAN = internalGetCardIdAndPAN();
        builder.pANID = internalGetPANID();
        return builder;
    }

    /**
     * Class to build instances of {@link AutoRenewCardResponseDataItems}.
     */
    public static class Builder {
        private OptionalNullable autoRenewReferenceId;
        private OptionalNullable cardIdAndPAN;
        private OptionalNullable pANID;



        /**
         * Setter for autoRenewReferenceId.
         * @param  autoRenewReferenceId  Integer value for autoRenewReferenceId.
         * @return Builder
         */
        public Builder autoRenewReferenceId(Integer autoRenewReferenceId) {
            this.autoRenewReferenceId = OptionalNullable.of(autoRenewReferenceId);
            return this;
        }

        /**
         * UnSetter for autoRenewReferenceId.
         * @return Builder
         */
        public Builder unsetAutoRenewReferenceId() {
            autoRenewReferenceId = null;
            return this;
        }

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

        /**
         * UnSetter for cardIdAndPAN.
         * @return Builder
         */
        public Builder unsetCardIdAndPAN() {
            cardIdAndPAN = null;
            return this;
        }

        /**
         * Setter for pANID.
         * @param  pANID  Double value for pANID.
         * @return Builder
         */
        public Builder pANID(Double pANID) {
            this.pANID = OptionalNullable.of(pANID);
            return this;
        }

        /**
         * UnSetter for pANID.
         * @return Builder
         */
        public Builder unsetPANID() {
            pANID = null;
            return this;
        }

        /**
         * Builds a new {@link AutoRenewCardResponseDataItems} object using the set fields.
         * @return {@link AutoRenewCardResponseDataItems}
         */
        public AutoRenewCardResponseDataItems build() {
            return new AutoRenewCardResponseDataItems(autoRenewReferenceId, cardIdAndPAN, pANID);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy