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

com.clinia.model.common.V1CompositeOperator 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.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;

/** V1CompositeOperator */
@JsonDeserialize(as = V1CompositeOperator.class)
public class V1CompositeOperator implements V1Operator {

  @JsonProperty("id")
  private String id;

  @JsonProperty("composite")
  private Map> composite = new HashMap<>();

  public V1CompositeOperator setId(String id) {
    this.id = id;
    return this;
  }

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

  public V1CompositeOperator setComposite(Map> composite) {
    this.composite = composite;
    return this;
  }

  public V1CompositeOperator putComposite(String key, List compositeItem) {
    this.composite.put(key, compositeItem);
    return this;
  }

  /** Get composite */
  @javax.annotation.Nonnull
  public Map> getComposite() {
    return composite;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    V1CompositeOperator v1CompositeOperator = (V1CompositeOperator) o;
    return Objects.equals(this.id, v1CompositeOperator.id) && Objects.equals(this.composite, v1CompositeOperator.composite);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, composite);
  }

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