![JAR search and dependency download from the Maven repository](/logo.png)
io.weaviate.client.v1.schema.model.Shard Maven / Gradle / Ivy
// Generated by delombok at Thu Jul 06 20:35:08 UTC 2023
package io.weaviate.client.v1.schema.model;
public class Shard {
private final String name;
private final String status;
@java.lang.SuppressWarnings("all")
Shard(final String name, final String status) {
this.name = name;
this.status = status;
}
@java.lang.SuppressWarnings("all")
public static class ShardBuilder {
@java.lang.SuppressWarnings("all")
private String name;
@java.lang.SuppressWarnings("all")
private String status;
@java.lang.SuppressWarnings("all")
ShardBuilder() {
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public Shard.ShardBuilder name(final String name) {
this.name = name;
return this;
}
/**
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
public Shard.ShardBuilder status(final String status) {
this.status = status;
return this;
}
@java.lang.SuppressWarnings("all")
public Shard build() {
return new Shard(this.name, this.status);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "Shard.ShardBuilder(name=" + this.name + ", status=" + this.status + ")";
}
}
@java.lang.SuppressWarnings("all")
public static Shard.ShardBuilder builder() {
return new Shard.ShardBuilder();
}
@java.lang.SuppressWarnings("all")
public String getName() {
return this.name;
}
@java.lang.SuppressWarnings("all")
public String getStatus() {
return this.status;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public java.lang.String toString() {
return "Shard(name=" + this.getName() + ", status=" + this.getStatus() + ")";
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Shard)) return false;
final Shard other = (Shard) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$name = this.getName();
final java.lang.Object other$name = other.getName();
if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
final java.lang.Object this$status = this.getStatus();
final java.lang.Object other$status = other.getStatus();
if (this$status == null ? other$status != null : !this$status.equals(other$status)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Shard;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $name = this.getName();
result = result * PRIME + ($name == null ? 43 : $name.hashCode());
final java.lang.Object $status = this.getStatus();
result = result * PRIME + ($status == null ? 43 : $status.hashCode());
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy