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

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

The newest version!
// Generated by delombok at Fri Nov 15 11:56:46 CST 2024
/*
* Copyright 2021 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 com.basistech.rosette.dm.Event;
import java.util.List;

/**
 * Simple api response data model for events
 */
@JacksonMixin
public final class EventsResponse extends Response {
    /**
     */
    private final List events;

    @SuppressWarnings("all")
    EventsResponse(final List events) {
        this.events = events;
    }


    @SuppressWarnings("all")
    public static class EventsResponseBuilder {
        @SuppressWarnings("all")
        private List events;

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

        /**
         * @return {@code this}.
         */
        @SuppressWarnings("all")
        public EventsResponse.EventsResponseBuilder events(final List events) {
            this.events = events;
            return this;
        }

        @SuppressWarnings("all")
        public EventsResponse build() {
            return new EventsResponse(this.events);
        }

        @Override
        @SuppressWarnings("all")
        public String toString() {
            return "EventsResponse.EventsResponseBuilder(events=" + this.events + ")";
        }
    }

    @SuppressWarnings("all")
    public static EventsResponse.EventsResponseBuilder builder() {
        return new EventsResponse.EventsResponseBuilder();
    }

    /**
     * @return the list of events
     */
    @SuppressWarnings("all")
    public List getEvents() {
        return this.events;
    }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy