Subversion Repositories SmartDukaan

Rev

View as "text/plain" | Blame | Last modification | View Log | RSS feed

/*
 * MANDII
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.1.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

package com.spice.profitmandi.common.services.mandii;

import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;

/**
 * Documents
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-10-13T10:59:30.263+05:30[Asia/Kolkata]")
public class Documents {
        public static final String SERIALIZED_NAME_NAME = "name";
        @JsonProperty(SERIALIZED_NAME_NAME)
        @SerializedName(SERIALIZED_NAME_NAME)
        private String name;

        public static final String SERIALIZED_NAME_STATUS = "status";
        @JsonProperty(SERIALIZED_NAME_STATUS)
        @SerializedName(SERIALIZED_NAME_STATUS)
        private DocumentStatusEnum status;

        public static final String SERIALIZED_NAME_DOCUMENT_TYPE = "document_type";
        @JsonProperty(SERIALIZED_NAME_DOCUMENT_TYPE)
        @SerializedName(SERIALIZED_NAME_DOCUMENT_TYPE)
        private DocumentTypesEnum documentType;

        public static final String SERIALIZED_NAME_REASON = "reason";
        @JsonProperty(SERIALIZED_NAME_REASON)
        @SerializedName(SERIALIZED_NAME_REASON)
        private String reason;

        public Documents name(String name) {

                this.name = name;
                return this;
        }

        /**
         * Get name
         * 
         * @return name
         **/

        public String getName() {
                return name;
        }

        public void setName(String name) {
                this.name = name;
        }

        public Documents status(DocumentStatusEnum status) {

                this.status = status;
                return this;
        }

        /**
         * Get status
         * 
         * @return status
         **/

        public DocumentStatusEnum getStatus() {
                return status;
        }

        public void setStatus(DocumentStatusEnum status) {
                this.status = status;
        }

        public Documents documentType(DocumentTypesEnum documentType) {

                this.documentType = documentType;
                return this;
        }

        /**
         * Get documentType
         * 
         * @return documentType
         **/

        public DocumentTypesEnum getDocumentType() {
                return documentType;
        }

        public void setDocumentType(DocumentTypesEnum documentType) {
                this.documentType = documentType;
        }

        public Documents reason(String reason) {

                this.reason = reason;
                return this;
        }

        /**
         * Get reason
         * 
         * @return reason
         **/
        public String getReason() {
                return reason;
        }

        public void setReason(String reason) {
                this.reason = reason;
        }

        @Override
        public boolean equals(Object o) {
                if (this == o) {
                        return true;
                }
                if (o == null || getClass() != o.getClass()) {
                        return false;
                }
                Documents documents = (Documents) o;
                return Objects.equals(this.name, documents.name) && Objects.equals(this.status, documents.status)
                                && Objects.equals(this.documentType, documents.documentType)
                                && Objects.equals(this.reason, documents.reason);
        }

        @Override
        public int hashCode() {
                return Objects.hash(name, status, documentType, reason);
        }

        @Override
        public String toString() {
                StringBuilder sb = new StringBuilder();
                sb.append("class Documents {\n");
                sb.append("    name: ").append(toIndentedString(name)).append("\n");
                sb.append("    status: ").append(toIndentedString(status)).append("\n");
                sb.append("    documentType: ").append(toIndentedString(documentType)).append("\n");
                sb.append("    reason: ").append(toIndentedString(reason)).append("\n");
                sb.append("}");
                return sb.toString();
        }

        /**
         * Convert the given object to string with each line indented by 4 spaces
         * (except the first line).
         */
        private String toIndentedString(Object o) {
                if (o == null) {
                        return "null";
                }
                return o.toString().replace("\n", "\n    ");
        }

}