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

com.clinia.model.registry.V1Collection 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.registry;

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

/** V1Collection */
public class V1Collection {

  @JsonProperty("key")
  private String key;

  @JsonProperty("profile")
  private V1Profile profile;

  @JsonProperty("pipeline")
  private V1Pipeline pipeline;

  public V1Collection setKey(String key) {
    this.key = key;
    return this;
  }

  /** The key of the collection. */
  @javax.annotation.Nonnull
  public String getKey() {
    return key;
  }

  public V1Collection setProfile(V1Profile profile) {
    this.profile = profile;
    return this;
  }

  /** Get profile */
  @javax.annotation.Nonnull
  public V1Profile getProfile() {
    return profile;
  }

  public V1Collection setPipeline(V1Pipeline pipeline) {
    this.pipeline = pipeline;
    return this;
  }

  /** Get pipeline */
  @javax.annotation.Nullable
  public V1Pipeline getPipeline() {
    return pipeline;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    V1Collection v1Collection = (V1Collection) o;
    return (
      Objects.equals(this.key, v1Collection.key) &&
      Objects.equals(this.profile, v1Collection.profile) &&
      Objects.equals(this.pipeline, v1Collection.pipeline)
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(key, profile, pipeline);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V1Collection {\n");
    sb.append("    key: ").append(toIndentedString(key)).append("\n");
    sb.append("    profile: ").append(toIndentedString(profile)).append("\n");
    sb.append("    pipeline: ").append(toIndentedString(pipeline)).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