com.clinia.model.datacatalog.V1RelationshipRefDefinition 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;
/** V1RelationshipRefDefinition */
public class V1RelationshipRefDefinition {
@JsonProperty("profileKey")
private String profileKey;
@JsonProperty("includeKey")
private String includeKey;
public V1RelationshipRefDefinition setProfileKey(String profileKey) {
this.profileKey = profileKey;
return this;
}
/** Get profileKey */
@javax.annotation.Nonnull
public String getProfileKey() {
return profileKey;
}
public V1RelationshipRefDefinition setIncludeKey(String includeKey) {
this.includeKey = includeKey;
return this;
}
/** key must follow pattern `^[a-zA-Z0-9-][\\w-]$`. */
@javax.annotation.Nonnull
public String getIncludeKey() {
return includeKey;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1RelationshipRefDefinition v1RelationshipRefDefinition = (V1RelationshipRefDefinition) o;
return (
Objects.equals(this.profileKey, v1RelationshipRefDefinition.profileKey) &&
Objects.equals(this.includeKey, v1RelationshipRefDefinition.includeKey)
);
}
@Override
public int hashCode() {
return Objects.hash(profileKey, includeKey);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1RelationshipRefDefinition {\n");
sb.append(" profileKey: ").append(toIndentedString(profileKey)).append("\n");
sb.append(" includeKey: ").append(toIndentedString(includeKey)).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 ");
}
}