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

com.shell.apitest.models.OrderCardEnquiryRequest 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 OrderCardEnquiryRequest type.
 */
public class OrderCardEnquiryRequest {
    private Filters2 filters;

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

    /**
     * Initialization constructor.
     * @param  filters  Filters2 value for filters.
     */
    public OrderCardEnquiryRequest(
            Filters2 filters) {
        this.filters = filters;
    }

    /**
     * Getter for Filters.
     * @return Returns the Filters2
     */
    @JsonGetter("Filters")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public Filters2 getFilters() {
        return filters;
    }

    /**
     * Setter for Filters.
     * @param filters Value for Filters2
     */
    @JsonSetter("Filters")
    public void setFilters(Filters2 filters) {
        this.filters = filters;
    }

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

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

    /**
     * Class to build instances of {@link OrderCardEnquiryRequest}.
     */
    public static class Builder {
        private Filters2 filters;



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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy