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

com.basistech.rosette.apimodel.Request 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;

/**
 * Common base class of all requests.
 */
public abstract class Request {
    /**
     */
    protected String profileId;

    /**
     * @return profile ID
     */
    @SuppressWarnings("all")
    public String getProfileId() {
        return this.profileId;
    }

    /**
     */
    @SuppressWarnings("all")
    public void setProfileId(final String profileId) {
        this.profileId = profileId;
    }

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

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

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

    @Override
    @SuppressWarnings("all")
    public String toString() {
        return "Request(profileId=" + this.getProfileId() + ")";
    }

    @SuppressWarnings("all")
    public Request(final String profileId) {
        this.profileId = profileId;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy