com.clinia.model.datacatalog.V1DataPartition Maven / Gradle / Ivy
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/clinia/api-clients-generation. DO NOT EDIT.
package com.clinia.model.datacatalog;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.Objects;
/** V1DataPartition */
public class V1DataPartition {
@JsonProperty("key")
private String key;
@JsonProperty("modules")
private V1DataPartitionModules modules;
@JsonProperty("source")
private V1DataPartitionSourceConfig source;
@JsonProperty("status")
private V1DataPartitionStatus status;
/** Get key */
@javax.annotation.Nullable
public String getKey() {
return key;
}
public V1DataPartition setModules(V1DataPartitionModules modules) {
this.modules = modules;
return this;
}
/** Get modules */
@javax.annotation.Nonnull
public V1DataPartitionModules getModules() {
return modules;
}
public V1DataPartition setSource(V1DataPartitionSourceConfig source) {
this.source = source;
return this;
}
/** Get source */
@javax.annotation.Nonnull
public V1DataPartitionSourceConfig getSource() {
return source;
}
public V1DataPartition setStatus(V1DataPartitionStatus status) {
this.status = status;
return this;
}
/** Get status */
@javax.annotation.Nullable
public V1DataPartitionStatus getStatus() {
return status;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1DataPartition v1DataPartition = (V1DataPartition) o;
return (
Objects.equals(this.key, v1DataPartition.key) &&
Objects.equals(this.modules, v1DataPartition.modules) &&
Objects.equals(this.source, v1DataPartition.source) &&
Objects.equals(this.status, v1DataPartition.status)
);
}
@Override
public int hashCode() {
return Objects.hash(key, modules, source, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1DataPartition {\n");
sb.append(" key: ").append(toIndentedString(key)).append("\n");
sb.append(" modules: ").append(toIndentedString(modules)).append("\n");
sb.append(" source: ").append(toIndentedString(source)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}