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

com.basistech.rosette.apimodel.CategoriesResponse Maven / Gradle / Ivy

The newest version!
// Generated by delombok at Fri Nov 15 11:56:46 CST 2024
/*
* Copyright 2017 Basis Technology Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.basistech.rosette.apimodel;

import com.basistech.rosette.annotations.JacksonMixin;
import java.util.List;

/**
 * Simple api response data model for categorization
 */
@JacksonMixin
public class CategoriesResponse extends Response {
    /**
     */
    private final List categories;

    @SuppressWarnings("all")
    CategoriesResponse(final List categories) {
        this.categories = categories;
    }


    @SuppressWarnings("all")
    public static class CategoriesResponseBuilder {
        @SuppressWarnings("all")
        private List categories;

        @SuppressWarnings("all")
        CategoriesResponseBuilder() {
        }

        /**
         * @return {@code this}.
         */
        @SuppressWarnings("all")
        public CategoriesResponse.CategoriesResponseBuilder categories(final List categories) {
            this.categories = categories;
            return this;
        }

        @SuppressWarnings("all")
        public CategoriesResponse build() {
            return new CategoriesResponse(this.categories);
        }

        @Override
        @SuppressWarnings("all")
        public String toString() {
            return "CategoriesResponse.CategoriesResponseBuilder(categories=" + this.categories + ")";
        }
    }

    @SuppressWarnings("all")
    public static CategoriesResponse.CategoriesResponseBuilder builder() {
        return new CategoriesResponse.CategoriesResponseBuilder();
    }

    /**
     * @return a list of categories
     */
    @SuppressWarnings("all")
    public List getCategories() {
        return this.categories;
    }

    @Override
    @SuppressWarnings("all")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof CategoriesResponse)) return false;
        final CategoriesResponse other = (CategoriesResponse) o;
        if (!other.canEqual((Object) this)) return false;
        if (!super.equals(o)) return false;
        final Object this$categories = this.getCategories();
        final Object other$categories = other.getCategories();
        if (this$categories == null ? other$categories != null : !this$categories.equals(other$categories)) return false;
        return true;
    }

    @SuppressWarnings("all")
    protected boolean canEqual(final Object other) {
        return other instanceof CategoriesResponse;
    }

    @Override
    @SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final Object $categories = this.getCategories();
        result = result * PRIME + ($categories == null ? 43 : $categories.hashCode());
        return result;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy