All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clinia.model.common.V1TraversedProperty 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.common;

import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.Objects;

/** V1TraversedProperty */
@JsonTypeInfo(
  use = JsonTypeInfo.Id.NAME,
  include = JsonTypeInfo.As.EXISTING_PROPERTY,
  property = "type",
  visible = true,
  defaultImpl = V1TraversedProperty.class
)
public class V1TraversedProperty {

  @JsonProperty("type")
  private V1DataType type;

  @JsonProperty("value")
  private T value;

  @JsonProperty("relationshipId")
  private String relationshipId;

  @JsonProperty("relationshipType")
  private String relationshipType;

  @JsonProperty("recordId")
  private String recordId;

  @JsonProperty("recordType")
  private String recordType;

  public V1TraversedProperty setType(V1DataType type) {
    this.type = type;
    return this;
  }

  /** Get type */
  @javax.annotation.Nonnull
  public V1DataType getType() {
    return type;
  }

  public V1TraversedProperty setValue(T value) {
    this.value = value;
    return this;
  }

  /** Get value */
  @javax.annotation.Nonnull
  public T getValue() {
    return value;
  }

  public V1TraversedProperty setRelationshipId(String relationshipId) {
    this.relationshipId = relationshipId;
    return this;
  }

  /** Get relationshipId */
  @javax.annotation.Nullable
  public String getRelationshipId() {
    return relationshipId;
  }

  public V1TraversedProperty setRelationshipType(String relationshipType) {
    this.relationshipType = relationshipType;
    return this;
  }

  /** Get relationshipType */
  @javax.annotation.Nullable
  public String getRelationshipType() {
    return relationshipType;
  }

  public V1TraversedProperty setRecordId(String recordId) {
    this.recordId = recordId;
    return this;
  }

  /** Get recordId */
  @javax.annotation.Nullable
  public String getRecordId() {
    return recordId;
  }

  public V1TraversedProperty setRecordType(String recordType) {
    this.recordType = recordType;
    return this;
  }

  /** Get recordType */
  @javax.annotation.Nullable
  public String getRecordType() {
    return recordType;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    V1TraversedProperty v1TraversedProperty = (V1TraversedProperty) o;
    return (
      Objects.equals(this.type, v1TraversedProperty.type) &&
      Objects.equals(this.value, v1TraversedProperty.value) &&
      Objects.equals(this.relationshipId, v1TraversedProperty.relationshipId) &&
      Objects.equals(this.relationshipType, v1TraversedProperty.relationshipType) &&
      Objects.equals(this.recordId, v1TraversedProperty.recordId) &&
      Objects.equals(this.recordType, v1TraversedProperty.recordType)
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(type, value, relationshipId, relationshipType, recordId, recordType);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V1TraversedProperty {\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    value: ").append(toIndentedString(value)).append("\n");
    sb.append("    relationshipId: ").append(toIndentedString(relationshipId)).append("\n");
    sb.append("    relationshipType: ").append(toIndentedString(relationshipType)).append("\n");
    sb.append("    recordId: ").append(toIndentedString(recordId)).append("\n");
    sb.append("    recordType: ").append(toIndentedString(recordType)).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    ");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy