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

com.shell.apitest.models.CardManagementV1OrdercardRequest 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 java.util.List;

/**
 * This is a model class for CardManagementV1OrdercardRequest type.
 */
public class CardManagementV1OrdercardRequest {
    private List cardDetails;

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

    /**
     * Initialization constructor.
     * @param  cardDetails  List of CardDetail value for cardDetails.
     */
    public CardManagementV1OrdercardRequest(
            List cardDetails) {
        this.cardDetails = cardDetails;
    }

    /**
     * Getter for CardDetails.
     * List of CardOrder entity. The fields in this entity are described below.
     * @return Returns the List of CardDetail
     */
    @JsonGetter("CardDetails")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public List getCardDetails() {
        return cardDetails;
    }

    /**
     * Setter for CardDetails.
     * List of CardOrder entity. The fields in this entity are described below.
     * @param cardDetails Value for List of CardDetail
     */
    @JsonSetter("CardDetails")
    public void setCardDetails(List cardDetails) {
        this.cardDetails = cardDetails;
    }

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

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

    /**
     * Class to build instances of {@link CardManagementV1OrdercardRequest}.
     */
    public static class Builder {
        private List cardDetails;



        /**
         * Setter for cardDetails.
         * @param  cardDetails  List of CardDetail value for cardDetails.
         * @return Builder
         */
        public Builder cardDetails(List cardDetails) {
            this.cardDetails = cardDetails;
            return this;
        }

        /**
         * Builds a new {@link CardManagementV1OrdercardRequest} object using the set fields.
         * @return {@link CardManagementV1OrdercardRequest}
         */
        public CardManagementV1OrdercardRequest build() {
            return new CardManagementV1OrdercardRequest(cardDetails);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy