com.clinia.model.datacatalog.V1DataSource 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;
/** V1DataSource */
public class V1DataSource {
@JsonProperty("key")
private String key;
@JsonProperty("type")
private V1DataSourceType type;
/** Get key */
@javax.annotation.Nullable
public String getKey() {
return key;
}
public V1DataSource setType(V1DataSourceType type) {
this.type = type;
return this;
}
/** Get type */
@javax.annotation.Nonnull
public V1DataSourceType getType() {
return type;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1DataSource v1DataSource = (V1DataSource) o;
return Objects.equals(this.key, v1DataSource.key) && Objects.equals(this.type, v1DataSource.type);
}
@Override
public int hashCode() {
return Objects.hash(key, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1DataSource {\n");
sb.append(" key: ").append(toIndentedString(key)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).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 ");
}
}