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

com.shell.apitest.models.ErrorUserAccessError 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 ErrorUserAccessError type.
 */
public class ErrorUserAccessError {
    private String code;
    private String description;

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

    /**
     * Initialization constructor.
     * @param  code  String value for code.
     * @param  description  String value for description.
     */
    public ErrorUserAccessError(
            String code,
            String description) {
        this.code = code;
        this.description = description;
    }

    /**
     * Getter for Code.
     * Error Code
     * @return Returns the String
     */
    @JsonGetter("Code")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public String getCode() {
        return code;
    }

    /**
     * Setter for Code.
     * Error Code
     * @param code Value for String
     */
    @JsonSetter("Code")
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * Getter for Description.
     * Description
     * @return Returns the String
     */
    @JsonGetter("Description")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public String getDescription() {
        return description;
    }

    /**
     * Setter for Description.
     * Description
     * @param description Value for String
     */
    @JsonSetter("Description")
    public void setDescription(String description) {
        this.description = description;
    }

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

    /**
     * Builds a new {@link ErrorUserAccessError.Builder} object.
     * Creates the instance with the state of the current model.
     * @return a new {@link ErrorUserAccessError.Builder} object
     */
    public Builder toBuilder() {
        Builder builder = new Builder()
                .code(getCode())
                .description(getDescription());
        return builder;
    }

    /**
     * Class to build instances of {@link ErrorUserAccessError}.
     */
    public static class Builder {
        private String code;
        private String description;



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

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

        /**
         * Builds a new {@link ErrorUserAccessError} object using the set fields.
         * @return {@link ErrorUserAccessError}
         */
        public ErrorUserAccessError build() {
            return new ErrorUserAccessError(code, description);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy