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

org.openmetadata.schema.dataInsight.custom.SummaryCard Maven / Gradle / Ivy

There is a newer version: 1.6.0-rc1
Show newest version

package org.openmetadata.schema.dataInsight.custom;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.processing.Generated;
import javax.validation.Valid;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonValue;


/**
 * SummaryCard
 * 

* Summary Card * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "type", "metrics" }) @Generated("jsonschema2pojo") public class SummaryCard { /** * Type of the data insight chart. * */ @JsonProperty("type") @JsonPropertyDescription("Type of the data insight chart.") private SummaryCard.Type type = SummaryCard.Type.fromValue("SummaryCard"); /** * Metrics for the data insight chart. * */ @JsonProperty("metrics") @JsonPropertyDescription("Metrics for the data insight chart.") @Valid private List metrics = new ArrayList(); /** * Type of the data insight chart. * */ @JsonProperty("type") public SummaryCard.Type getType() { return type; } /** * Type of the data insight chart. * */ @JsonProperty("type") public void setType(SummaryCard.Type type) { this.type = type; } public SummaryCard withType(SummaryCard.Type type) { this.type = type; return this; } /** * Metrics for the data insight chart. * */ @JsonProperty("metrics") public List getMetrics() { return metrics; } /** * Metrics for the data insight chart. * */ @JsonProperty("metrics") public void setMetrics(List metrics) { this.metrics = metrics; } public SummaryCard withMetrics(List metrics) { this.metrics = metrics; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(SummaryCard.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("type"); sb.append('='); sb.append(((this.type == null)?"":this.type)); sb.append(','); sb.append("metrics"); sb.append('='); sb.append(((this.metrics == null)?"":this.metrics)); sb.append(','); if (sb.charAt((sb.length()- 1)) == ',') { sb.setCharAt((sb.length()- 1), ']'); } else { sb.append(']'); } return sb.toString(); } @Override public int hashCode() { int result = 1; result = ((result* 31)+((this.type == null)? 0 :this.type.hashCode())); result = ((result* 31)+((this.metrics == null)? 0 :this.metrics.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof SummaryCard) == false) { return false; } SummaryCard rhs = ((SummaryCard) other); return (((this.type == rhs.type)||((this.type!= null)&&this.type.equals(rhs.type)))&&((this.metrics == rhs.metrics)||((this.metrics!= null)&&this.metrics.equals(rhs.metrics)))); } /** * Type of the data insight chart. * */ @Generated("jsonschema2pojo") public enum Type { SUMMARY_CARD("SummaryCard"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (SummaryCard.Type c: values()) { CONSTANTS.put(c.value, c); } } Type(String value) { this.value = value; } @Override public String toString() { return this.value; } @JsonValue public String value() { return this.value; } @JsonCreator public static SummaryCard.Type fromValue(String value) { SummaryCard.Type constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy