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

com.shell.apitest.models.AutoRenewCardResponse 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 AutoRenewCardResponse type.
 */
public class AutoRenewCardResponse {
    private Integer mainReference;
    private String requestId;
    private String status;
    private List data;

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

    /**
     * Initialization constructor.
     * @param  mainReference  Integer value for mainReference.
     * @param  requestId  String value for requestId.
     * @param  status  String value for status.
     * @param  data  List of AutoRenewCardResponseDataItems value for data.
     */
    public AutoRenewCardResponse(
            Integer mainReference,
            String requestId,
            String status,
            List data) {
        this.mainReference = mainReference;
        this.requestId = requestId;
        this.status = status;
        this.data = data;
    }

    /**
     * Getter for MainReference.
     * Main reference number for tracking. Example: 123455
     * @return Returns the Integer
     */
    @JsonGetter("MainReference")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public Integer getMainReference() {
        return mainReference;
    }

    /**
     * Setter for MainReference.
     * Main reference number for tracking. Example: 123455
     * @param mainReference Value for Integer
     */
    @JsonSetter("MainReference")
    public void setMainReference(Integer mainReference) {
        this.mainReference = mainReference;
    }

    /**
     * Getter for RequestId.
     * API
     * @return Returns the String
     */
    @JsonGetter("RequestId")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public String getRequestId() {
        return requestId;
    }

    /**
     * Setter for RequestId.
     * API
     * @param requestId Value for String
     */
    @JsonSetter("RequestId")
    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    /**
     * Getter for Status.
     * Indicates overall status of the request. Allowed values: SUCCES, FAILED, PARTIAL_SUCCESS
     * @return Returns the String
     */
    @JsonGetter("Status")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public String getStatus() {
        return status;
    }

    /**
     * Setter for Status.
     * Indicates overall status of the request. Allowed values: SUCCES, FAILED, PARTIAL_SUCCESS
     * @param status Value for String
     */
    @JsonSetter("Status")
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * Getter for Data.
     * List of Auto Renew reference entity. The fields of this entity are described below.
     * @return Returns the List of AutoRenewCardResponseDataItems
     */
    @JsonGetter("Data")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public List getData() {
        return data;
    }

    /**
     * Setter for Data.
     * List of Auto Renew reference entity. The fields of this entity are described below.
     * @param data Value for List of AutoRenewCardResponseDataItems
     */
    @JsonSetter("Data")
    public void setData(List data) {
        this.data = data;
    }

    /**
     * Converts this AutoRenewCardResponse into string format.
     * @return String representation of this class
     */
    @Override
    public String toString() {
        return "AutoRenewCardResponse [" + "mainReference=" + mainReference + ", requestId="
                + requestId + ", status=" + status + ", data=" + data + "]";
    }

    /**
     * Builds a new {@link AutoRenewCardResponse.Builder} object.
     * Creates the instance with the state of the current model.
     * @return a new {@link AutoRenewCardResponse.Builder} object
     */
    public Builder toBuilder() {
        Builder builder = new Builder()
                .mainReference(getMainReference())
                .requestId(getRequestId())
                .status(getStatus())
                .data(getData());
        return builder;
    }

    /**
     * Class to build instances of {@link AutoRenewCardResponse}.
     */
    public static class Builder {
        private Integer mainReference;
        private String requestId;
        private String status;
        private List data;



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

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

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

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

        /**
         * Builds a new {@link AutoRenewCardResponse} object using the set fields.
         * @return {@link AutoRenewCardResponse}
         */
        public AutoRenewCardResponse build() {
            return new AutoRenewCardResponse(mainReference, requestId, status, data);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy