com.basistech.rosette.apimodel.batch.BatchResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rosette-api-all Show documentation
Show all versions of rosette-api-all Show documentation
Babel Street Analytics API all modules combined
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.batch;
import com.basistech.rosette.annotations.JacksonMixin;
import com.basistech.rosette.apimodel.Response;
@JacksonMixin
public final class BatchResponse extends Response {
// batch id
private final String id;
// URL where the batch results will be stored
private final String batchOutputUrl;
// progress checking endpoint/url
private final String batchCheckProgressUrl;
@SuppressWarnings("all")
BatchResponse(final String id, final String batchOutputUrl, final String batchCheckProgressUrl) {
this.id = id;
this.batchOutputUrl = batchOutputUrl;
this.batchCheckProgressUrl = batchCheckProgressUrl;
}
@SuppressWarnings("all")
public static class BatchResponseBuilder {
@SuppressWarnings("all")
private String id;
@SuppressWarnings("all")
private String batchOutputUrl;
@SuppressWarnings("all")
private String batchCheckProgressUrl;
@SuppressWarnings("all")
BatchResponseBuilder() {
}
/**
* @return {@code this}.
*/
@SuppressWarnings("all")
public BatchResponse.BatchResponseBuilder id(final String id) {
this.id = id;
return this;
}
/**
* @return {@code this}.
*/
@SuppressWarnings("all")
public BatchResponse.BatchResponseBuilder batchOutputUrl(final String batchOutputUrl) {
this.batchOutputUrl = batchOutputUrl;
return this;
}
/**
* @return {@code this}.
*/
@SuppressWarnings("all")
public BatchResponse.BatchResponseBuilder batchCheckProgressUrl(final String batchCheckProgressUrl) {
this.batchCheckProgressUrl = batchCheckProgressUrl;
return this;
}
@SuppressWarnings("all")
public BatchResponse build() {
return new BatchResponse(this.id, this.batchOutputUrl, this.batchCheckProgressUrl);
}
@Override
@SuppressWarnings("all")
public String toString() {
return "BatchResponse.BatchResponseBuilder(id=" + this.id + ", batchOutputUrl=" + this.batchOutputUrl + ", batchCheckProgressUrl=" + this.batchCheckProgressUrl + ")";
}
}
@SuppressWarnings("all")
public static BatchResponse.BatchResponseBuilder builder() {
return new BatchResponse.BatchResponseBuilder();
}
@SuppressWarnings("all")
public String getId() {
return this.id;
}
@SuppressWarnings("all")
public String getBatchOutputUrl() {
return this.batchOutputUrl;
}
@SuppressWarnings("all")
public String getBatchCheckProgressUrl() {
return this.batchCheckProgressUrl;
}
@Override
@SuppressWarnings("all")
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof BatchResponse)) return false;
final BatchResponse other = (BatchResponse) o;
if (!other.canEqual((Object) this)) return false;
if (!super.equals(o)) return false;
final Object this$id = this.getId();
final Object other$id = other.getId();
if (this$id == null ? other$id != null : !this$id.equals(other$id)) return false;
final Object this$batchOutputUrl = this.getBatchOutputUrl();
final Object other$batchOutputUrl = other.getBatchOutputUrl();
if (this$batchOutputUrl == null ? other$batchOutputUrl != null : !this$batchOutputUrl.equals(other$batchOutputUrl)) return false;
final Object this$batchCheckProgressUrl = this.getBatchCheckProgressUrl();
final Object other$batchCheckProgressUrl = other.getBatchCheckProgressUrl();
if (this$batchCheckProgressUrl == null ? other$batchCheckProgressUrl != null : !this$batchCheckProgressUrl.equals(other$batchCheckProgressUrl)) return false;
return true;
}
@SuppressWarnings("all")
protected boolean canEqual(final Object other) {
return other instanceof BatchResponse;
}
@Override
@SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
final Object $id = this.getId();
result = result * PRIME + ($id == null ? 43 : $id.hashCode());
final Object $batchOutputUrl = this.getBatchOutputUrl();
result = result * PRIME + ($batchOutputUrl == null ? 43 : $batchOutputUrl.hashCode());
final Object $batchCheckProgressUrl = this.getBatchCheckProgressUrl();
result = result * PRIME + ($batchCheckProgressUrl == null ? 43 : $batchCheckProgressUrl.hashCode());
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy