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

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

The newest version!
// Generated by delombok at Fri Nov 15 11:56:46 CST 2024
/*******************************************************************************
 * Copyright 2019 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;

/**
 * Response to configuration request
 */
@JacksonMixin
public class ConfigurationResponse extends Response {
    /**
     */
    private final String code;

    @SuppressWarnings("all")
    ConfigurationResponse(final String code) {
        this.code = code;
    }


    @SuppressWarnings("all")
    public static class ConfigurationResponseBuilder {
        @SuppressWarnings("all")
        private String code;

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

        /**
         * @return {@code this}.
         */
        @SuppressWarnings("all")
        public ConfigurationResponse.ConfigurationResponseBuilder code(final String code) {
            this.code = code;
            return this;
        }

        @SuppressWarnings("all")
        public ConfigurationResponse build() {
            return new ConfigurationResponse(this.code);
        }

        @Override
        @SuppressWarnings("all")
        public String toString() {
            return "ConfigurationResponse.ConfigurationResponseBuilder(code=" + this.code + ")";
        }
    }

    @SuppressWarnings("all")
    public static ConfigurationResponse.ConfigurationResponseBuilder builder() {
        return new ConfigurationResponse.ConfigurationResponseBuilder();
    }

    /**
     * @return the result code
     */
    @SuppressWarnings("all")
    public String getCode() {
        return this.code;
    }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy