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

com.basistech.rosette.apimodel.EventsOptions 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.util.LanguageCode;
import java.util.EnumMap;
import java.util.List;

/**
 * Events options
 */
@JacksonMixin
public final class EventsOptions extends Options {
    /**
     * Default options
     */
    public static final EventsOptions DEFAULT = EventsOptions.builder().negation(EventsNegationOption.IGNORE).build();
    /**
     * workspaceId to use.
     */
    private final String workspaceId;
    private final EnumMap> plan;
    private final EventsNegationOption negation;

    @SuppressWarnings("all")
    EventsOptions(final String workspaceId, final EnumMap> plan, final EventsNegationOption negation) {
        this.workspaceId = workspaceId;
        this.plan = plan;
        this.negation = negation;
    }


    @SuppressWarnings("all")
    public static class EventsOptionsBuilder {
        @SuppressWarnings("all")
        private String workspaceId;
        @SuppressWarnings("all")
        private EnumMap> plan;
        @SuppressWarnings("all")
        private EventsNegationOption negation;

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

        /**
         * workspaceId to use.
         * @return {@code this}.
         */
        @SuppressWarnings("all")
        public EventsOptions.EventsOptionsBuilder workspaceId(final String workspaceId) {
            this.workspaceId = workspaceId;
            return this;
        }

        /**
         * @return {@code this}.
         */
        @SuppressWarnings("all")
        public EventsOptions.EventsOptionsBuilder plan(final EnumMap> plan) {
            this.plan = plan;
            return this;
        }

        /**
         * @return {@code this}.
         */
        @SuppressWarnings("all")
        public EventsOptions.EventsOptionsBuilder negation(final EventsNegationOption negation) {
            this.negation = negation;
            return this;
        }

        @SuppressWarnings("all")
        public EventsOptions build() {
            return new EventsOptions(this.workspaceId, this.plan, this.negation);
        }

        @Override
        @SuppressWarnings("all")
        public String toString() {
            return "EventsOptions.EventsOptionsBuilder(workspaceId=" + this.workspaceId + ", plan=" + this.plan + ", negation=" + this.negation + ")";
        }
    }

    @SuppressWarnings("all")
    public static EventsOptions.EventsOptionsBuilder builder() {
        return new EventsOptions.EventsOptionsBuilder();
    }

    /**
     * workspaceId to use.
     */
    @SuppressWarnings("all")
    public String getWorkspaceId() {
        return this.workspaceId;
    }

    @SuppressWarnings("all")
    public EnumMap> getPlan() {
        return this.plan;
    }

    @SuppressWarnings("all")
    public EventsNegationOption getNegation() {
        return this.negation;
    }

    @Override
    @SuppressWarnings("all")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof EventsOptions)) return false;
        final EventsOptions other = (EventsOptions) o;
        if (!other.canEqual((Object) this)) return false;
        if (!super.equals(o)) return false;
        final Object this$workspaceId = this.getWorkspaceId();
        final Object other$workspaceId = other.getWorkspaceId();
        if (this$workspaceId == null ? other$workspaceId != null : !this$workspaceId.equals(other$workspaceId)) return false;
        final Object this$plan = this.getPlan();
        final Object other$plan = other.getPlan();
        if (this$plan == null ? other$plan != null : !this$plan.equals(other$plan)) return false;
        final Object this$negation = this.getNegation();
        final Object other$negation = other.getNegation();
        if (this$negation == null ? other$negation != null : !this$negation.equals(other$negation)) return false;
        return true;
    }

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

    @Override
    @SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final Object $workspaceId = this.getWorkspaceId();
        result = result * PRIME + ($workspaceId == null ? 43 : $workspaceId.hashCode());
        final Object $plan = this.getPlan();
        result = result * PRIME + ($plan == null ? 43 : $plan.hashCode());
        final Object $negation = this.getNegation();
        result = result * PRIME + ($negation == null ? 43 : $negation.hashCode());
        return result;
    }

    @Override
    @SuppressWarnings("all")
    public String toString() {
        return "EventsOptions(workspaceId=" + this.getWorkspaceId() + ", plan=" + this.getPlan() + ", negation=" + this.getNegation() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy