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

com.shell.apitest.models.UpdateCardGroupResponseMoveCardReferencesItems 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 UpdateCardGroupResponseMoveCardReferencesItems type.
 */
public class UpdateCardGroupResponseMoveCardReferencesItems {
    private OptionalNullable cardId;
    private OptionalNullable pAN;
    private OptionalNullable reference;

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

    /**
     * Initialization constructor.
     * @param  cardId  Integer value for cardId.
     * @param  pAN  String value for pAN.
     * @param  reference  Integer value for reference.
     */
    public UpdateCardGroupResponseMoveCardReferencesItems(
            Integer cardId,
            String pAN,
            Integer reference) {
        this.cardId = OptionalNullable.of(cardId);
        this.pAN = OptionalNullable.of(pAN);
        this.reference = OptionalNullable.of(reference);
    }

    /**
     * Initialization constructor.
     * @param  cardId  Integer value for cardId.
     * @param  pAN  String value for pAN.
     * @param  reference  Integer value for reference.
     */

    protected UpdateCardGroupResponseMoveCardReferencesItems(OptionalNullable cardId,
            OptionalNullable pAN, OptionalNullable reference) {
        this.cardId = cardId;
        this.pAN = pAN;
        this.reference = reference;
    }

    /**
     * Internal Getter for CardId.
     * Card Id of the card. Example: 123
     * @return Returns the Internal Integer
     */
    @JsonGetter("CardId")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonSerialize(using = OptionalNullable.Serializer.class)
    protected OptionalNullable internalGetCardId() {
        return this.cardId;
    }

    /**
     * Getter for CardId.
     * Card Id of the card. Example: 123
     * @return Returns the Integer
     */
    public Integer getCardId() {
        return OptionalNullable.getFrom(cardId);
    }

    /**
     * Setter for CardId.
     * Card Id of the card. Example: 123
     * @param cardId Value for Integer
     */
    @JsonSetter("CardId")
    public void setCardId(Integer cardId) {
        this.cardId = OptionalNullable.of(cardId);
    }

    /**
     * UnSetter for CardId.
     * Card Id of the card. Example: 123
     */
    public void unsetCardId() {
        cardId = null;
    }

    /**
     * Internal Getter for PAN.
     * PAN of the card. Example: 7002051123456789145
     * @return Returns the Internal String
     */
    @JsonGetter("PAN")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonSerialize(using = OptionalNullable.Serializer.class)
    protected OptionalNullable internalGetPAN() {
        return this.pAN;
    }

    /**
     * Getter for PAN.
     * PAN of the card. Example: 7002051123456789145
     * @return Returns the String
     */
    public String getPAN() {
        return OptionalNullable.getFrom(pAN);
    }

    /**
     * Setter for PAN.
     * PAN of the card. Example: 7002051123456789145
     * @param pAN Value for String
     */
    @JsonSetter("PAN")
    public void setPAN(String pAN) {
        this.pAN = OptionalNullable.of(pAN);
    }

    /**
     * UnSetter for PAN.
     * PAN of the card. Example: 7002051123456789145
     */
    public void unsetPAN() {
        pAN = null;
    }

    /**
     * Internal Getter for Reference.
     * Reference number for tracking of update status request of the specific card.
     * @return Returns the Internal Integer
     */
    @JsonGetter("Reference")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonSerialize(using = OptionalNullable.Serializer.class)
    protected OptionalNullable internalGetReference() {
        return this.reference;
    }

    /**
     * Getter for Reference.
     * Reference number for tracking of update status request of the specific card.
     * @return Returns the Integer
     */
    public Integer getReference() {
        return OptionalNullable.getFrom(reference);
    }

    /**
     * Setter for Reference.
     * Reference number for tracking of update status request of the specific card.
     * @param reference Value for Integer
     */
    @JsonSetter("Reference")
    public void setReference(Integer reference) {
        this.reference = OptionalNullable.of(reference);
    }

    /**
     * UnSetter for Reference.
     * Reference number for tracking of update status request of the specific card.
     */
    public void unsetReference() {
        reference = null;
    }

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

    /**
     * Builds a new {@link UpdateCardGroupResponseMoveCardReferencesItems.Builder} object.
     * Creates the instance with the state of the current model.
     * @return a new {@link UpdateCardGroupResponseMoveCardReferencesItems.Builder} object
     */
    public Builder toBuilder() {
        Builder builder = new Builder();
        builder.cardId = internalGetCardId();
        builder.pAN = internalGetPAN();
        builder.reference = internalGetReference();
        return builder;
    }

    /**
     * Class to build instances of {@link UpdateCardGroupResponseMoveCardReferencesItems}.
     */
    public static class Builder {
        private OptionalNullable cardId;
        private OptionalNullable pAN;
        private OptionalNullable reference;



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

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

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

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

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

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

        /**
         * Builds a new {@link UpdateCardGroupResponseMoveCardReferencesItems} object using the set
         * fields.
         * @return {@link UpdateCardGroupResponseMoveCardReferencesItems}
         */
        public UpdateCardGroupResponseMoveCardReferencesItems build() {
            return new UpdateCardGroupResponseMoveCardReferencesItems(cardId, pAN, reference);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy