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

com.clinia.model.datacatalog.V1MDMPartitionConfig 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.ArrayList;
import java.util.List;
import java.util.Objects;

/** V1MDMPartitionConfig */
@JsonDeserialize(as = V1MDMPartitionConfig.class)
public class V1MDMPartitionConfig implements V1DataPartitionSourceConfig {

  @JsonProperty("type")
  private String type;

  @JsonProperty("sources")
  private List sources = new ArrayList<>();

  @JsonProperty("collections")
  private List collections = new ArrayList<>();

  @JsonProperty("relationships")
  private List relationships = new ArrayList<>();

  public V1MDMPartitionConfig setType(String type) {
    this.type = type;
    return this;
  }

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

  public V1MDMPartitionConfig setSources(List sources) {
    this.sources = sources;
    return this;
  }

  public V1MDMPartitionConfig addSources(String sourcesItem) {
    this.sources.add(sourcesItem);
    return this;
  }

  /** Get sources */
  @javax.annotation.Nonnull
  public List getSources() {
    return sources;
  }

  public V1MDMPartitionConfig setCollections(List collections) {
    this.collections = collections;
    return this;
  }

  public V1MDMPartitionConfig addCollections(V1MDMPartitionCollectionConnection collectionsItem) {
    this.collections.add(collectionsItem);
    return this;
  }

  /** Get collections */
  @javax.annotation.Nonnull
  public List getCollections() {
    return collections;
  }

  public V1MDMPartitionConfig setRelationships(List relationships) {
    this.relationships = relationships;
    return this;
  }

  public V1MDMPartitionConfig addRelationships(V1MDMPartitionRelationshipConnection relationshipsItem) {
    this.relationships.add(relationshipsItem);
    return this;
  }

  /** Get relationships */
  @javax.annotation.Nonnull
  public List getRelationships() {
    return relationships;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    V1MDMPartitionConfig v1MDMPartitionConfig = (V1MDMPartitionConfig) o;
    return (
      Objects.equals(this.type, v1MDMPartitionConfig.type) &&
      Objects.equals(this.sources, v1MDMPartitionConfig.sources) &&
      Objects.equals(this.collections, v1MDMPartitionConfig.collections) &&
      Objects.equals(this.relationships, v1MDMPartitionConfig.relationships)
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(type, sources, collections, relationships);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V1MDMPartitionConfig {\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    sources: ").append(toIndentedString(sources)).append("\n");
    sb.append("    collections: ").append(toIndentedString(collections)).append("\n");
    sb.append("    relationships: ").append(toIndentedString(relationships)).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