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

com.shell.apitest.models.OrderCardRequest 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 OrderCardRequest type.
 */
public class OrderCardRequest {
    private List cardDetails;

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

    /**
     * Initialization constructor.
     * @param  cardDetails  List of CardDetail value for cardDetails.
     */
    public OrderCardRequest(
            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 OrderCardRequest into string format.
     * @return String representation of this class
     */
    @Override
    public String toString() {
        return "OrderCardRequest [" + "cardDetails=" + cardDetails + "]";
    }

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

    /**
     * Class to build instances of {@link OrderCardRequest}.
     */
    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 OrderCardRequest} object using the set fields.
         * @return {@link OrderCardRequest}
         */
        public OrderCardRequest build() {
            return new OrderCardRequest(cardDetails);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy