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

com.shell.apitest.models.CreateCardGroupRequestCardsItems 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;

/**
 * This is a model class for CreateCardGroupRequestCardsItems type.
 */
public class CreateCardGroupRequestCardsItems {
    private Integer accountId;
    private String accountNumber;
    private Integer cardId;
    private String pAN;

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

    /**
     * Initialization constructor.
     * @param  accountId  Integer value for accountId.
     * @param  accountNumber  String value for accountNumber.
     * @param  cardId  Integer value for cardId.
     * @param  pAN  String value for pAN.
     */
    public CreateCardGroupRequestCardsItems(
            Integer accountId,
            String accountNumber,
            Integer cardId,
            String pAN) {
        this.accountId = accountId;
        this.accountNumber = accountNumber;
        this.cardId = cardId;
        this.pAN = pAN;
    }

    /**
     * Getter for AccountId.
     * Account Id of the account of the card. Optional if AccountNumber is passed, else Mandatory.
     * @return Returns the Integer
     */
    @JsonGetter("AccountId")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public Integer getAccountId() {
        return accountId;
    }

    /**
     * Setter for AccountId.
     * Account Id of the account of the card. Optional if AccountNumber is passed, else Mandatory.
     * @param accountId Value for Integer
     */
    @JsonSetter("AccountId")
    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    /**
     * Getter for AccountNumber.
     * Account Number of the account of the card. Optional if AccountId is passed, else Mandatory.
     * @return Returns the String
     */
    @JsonGetter("AccountNumber")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public String getAccountNumber() {
        return accountNumber;
    }

    /**
     * Setter for AccountNumber.
     * Account Number of the account of the card. Optional if AccountId is passed, else Mandatory.
     * @param accountNumber Value for String
     */
    @JsonSetter("AccountNumber")
    public void setAccountNumber(String accountNumber) {
        this.accountNumber = accountNumber;
    }

    /**
     * Getter for CardId.
     * Card Id of the card. Optional if PAN is passed, else Mandatory.
     * @return Returns the Integer
     */
    @JsonGetter("CardId")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public Integer getCardId() {
        return cardId;
    }

    /**
     * Setter for CardId.
     * Card Id of the card. Optional if PAN is passed, else Mandatory.
     * @param cardId Value for Integer
     */
    @JsonSetter("CardId")
    public void setCardId(Integer cardId) {
        this.cardId = cardId;
    }

    /**
     * Getter for PAN.
     * PAN of the card. Optional if CardId is passed, else Mandatory.
     * @return Returns the String
     */
    @JsonGetter("PAN")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public String getPAN() {
        return pAN;
    }

    /**
     * Setter for PAN.
     * PAN of the card. Optional if CardId is passed, else Mandatory.
     * @param pAN Value for String
     */
    @JsonSetter("PAN")
    public void setPAN(String pAN) {
        this.pAN = pAN;
    }

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

    /**
     * Builds a new {@link CreateCardGroupRequestCardsItems.Builder} object.
     * Creates the instance with the state of the current model.
     * @return a new {@link CreateCardGroupRequestCardsItems.Builder} object
     */
    public Builder toBuilder() {
        Builder builder = new Builder()
                .accountId(getAccountId())
                .accountNumber(getAccountNumber())
                .cardId(getCardId())
                .pAN(getPAN());
        return builder;
    }

    /**
     * Class to build instances of {@link CreateCardGroupRequestCardsItems}.
     */
    public static class Builder {
        private Integer accountId;
        private String accountNumber;
        private Integer cardId;
        private String pAN;



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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy