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

com.volcengine.volcobserve.model.GetTopDataRequest Maven / Gradle / Ivy

There is a newer version: 1.0.75
Show newest version
/*
 * volc_observe
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: common-version
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package com.volcengine.volcobserve.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import com.volcengine.volcobserve.model.InstanceForGetTopDataInput;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
 * GetTopDataRequest
 */



public class GetTopDataRequest {
  @SerializedName("Asc")
  private Boolean asc = null;

  @SerializedName("EndTime")
  private Integer endTime = null;

  @SerializedName("GroupBy")
  private List groupBy = null;

  @SerializedName("Instances")
  private List instances = null;

  @SerializedName("MetricNames")
  private List metricNames = null;

  @SerializedName("Namespace")
  private String namespace = null;

  @SerializedName("OrderByMetricName")
  private String orderByMetricName = null;

  @SerializedName("StartTime")
  private Integer startTime = null;

  @SerializedName("SubNamespace")
  private String subNamespace = null;

  @SerializedName("TopN")
  private Integer topN = null;

  public GetTopDataRequest asc(Boolean asc) {
    this.asc = asc;
    return this;
  }

   /**
   * Get asc
   * @return asc
  **/
  @Schema(description = "")
  public Boolean isAsc() {
    return asc;
  }

  public void setAsc(Boolean asc) {
    this.asc = asc;
  }

  public GetTopDataRequest endTime(Integer endTime) {
    this.endTime = endTime;
    return this;
  }

   /**
   * Get endTime
   * @return endTime
  **/
  @Schema(description = "")
  public Integer getEndTime() {
    return endTime;
  }

  public void setEndTime(Integer endTime) {
    this.endTime = endTime;
  }

  public GetTopDataRequest groupBy(List groupBy) {
    this.groupBy = groupBy;
    return this;
  }

  public GetTopDataRequest addGroupByItem(String groupByItem) {
    if (this.groupBy == null) {
      this.groupBy = new ArrayList();
    }
    this.groupBy.add(groupByItem);
    return this;
  }

   /**
   * Get groupBy
   * @return groupBy
  **/
  @Schema(description = "")
  public List getGroupBy() {
    return groupBy;
  }

  public void setGroupBy(List groupBy) {
    this.groupBy = groupBy;
  }

  public GetTopDataRequest instances(List instances) {
    this.instances = instances;
    return this;
  }

  public GetTopDataRequest addInstancesItem(InstanceForGetTopDataInput instancesItem) {
    if (this.instances == null) {
      this.instances = new ArrayList();
    }
    this.instances.add(instancesItem);
    return this;
  }

   /**
   * Get instances
   * @return instances
  **/
  @Valid
  @Schema(description = "")
  public List getInstances() {
    return instances;
  }

  public void setInstances(List instances) {
    this.instances = instances;
  }

  public GetTopDataRequest metricNames(List metricNames) {
    this.metricNames = metricNames;
    return this;
  }

  public GetTopDataRequest addMetricNamesItem(String metricNamesItem) {
    if (this.metricNames == null) {
      this.metricNames = new ArrayList();
    }
    this.metricNames.add(metricNamesItem);
    return this;
  }

   /**
   * Get metricNames
   * @return metricNames
  **/
  @Schema(description = "")
  public List getMetricNames() {
    return metricNames;
  }

  public void setMetricNames(List metricNames) {
    this.metricNames = metricNames;
  }

  public GetTopDataRequest namespace(String namespace) {
    this.namespace = namespace;
    return this;
  }

   /**
   * Get namespace
   * @return namespace
  **/
  @Schema(description = "")
  public String getNamespace() {
    return namespace;
  }

  public void setNamespace(String namespace) {
    this.namespace = namespace;
  }

  public GetTopDataRequest orderByMetricName(String orderByMetricName) {
    this.orderByMetricName = orderByMetricName;
    return this;
  }

   /**
   * Get orderByMetricName
   * @return orderByMetricName
  **/
  @Schema(description = "")
  public String getOrderByMetricName() {
    return orderByMetricName;
  }

  public void setOrderByMetricName(String orderByMetricName) {
    this.orderByMetricName = orderByMetricName;
  }

  public GetTopDataRequest startTime(Integer startTime) {
    this.startTime = startTime;
    return this;
  }

   /**
   * Get startTime
   * @return startTime
  **/
  @Schema(description = "")
  public Integer getStartTime() {
    return startTime;
  }

  public void setStartTime(Integer startTime) {
    this.startTime = startTime;
  }

  public GetTopDataRequest subNamespace(String subNamespace) {
    this.subNamespace = subNamespace;
    return this;
  }

   /**
   * Get subNamespace
   * @return subNamespace
  **/
  @Schema(description = "")
  public String getSubNamespace() {
    return subNamespace;
  }

  public void setSubNamespace(String subNamespace) {
    this.subNamespace = subNamespace;
  }

  public GetTopDataRequest topN(Integer topN) {
    this.topN = topN;
    return this;
  }

   /**
   * Get topN
   * @return topN
  **/
  @Schema(description = "")
  public Integer getTopN() {
    return topN;
  }

  public void setTopN(Integer topN) {
    this.topN = topN;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    GetTopDataRequest getTopDataRequest = (GetTopDataRequest) o;
    return Objects.equals(this.asc, getTopDataRequest.asc) &&
        Objects.equals(this.endTime, getTopDataRequest.endTime) &&
        Objects.equals(this.groupBy, getTopDataRequest.groupBy) &&
        Objects.equals(this.instances, getTopDataRequest.instances) &&
        Objects.equals(this.metricNames, getTopDataRequest.metricNames) &&
        Objects.equals(this.namespace, getTopDataRequest.namespace) &&
        Objects.equals(this.orderByMetricName, getTopDataRequest.orderByMetricName) &&
        Objects.equals(this.startTime, getTopDataRequest.startTime) &&
        Objects.equals(this.subNamespace, getTopDataRequest.subNamespace) &&
        Objects.equals(this.topN, getTopDataRequest.topN);
  }

  @Override
  public int hashCode() {
    return Objects.hash(asc, endTime, groupBy, instances, metricNames, namespace, orderByMetricName, startTime, subNamespace, topN);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GetTopDataRequest {\n");
    
    sb.append("    asc: ").append(toIndentedString(asc)).append("\n");
    sb.append("    endTime: ").append(toIndentedString(endTime)).append("\n");
    sb.append("    groupBy: ").append(toIndentedString(groupBy)).append("\n");
    sb.append("    instances: ").append(toIndentedString(instances)).append("\n");
    sb.append("    metricNames: ").append(toIndentedString(metricNames)).append("\n");
    sb.append("    namespace: ").append(toIndentedString(namespace)).append("\n");
    sb.append("    orderByMetricName: ").append(toIndentedString(orderByMetricName)).append("\n");
    sb.append("    startTime: ").append(toIndentedString(startTime)).append("\n");
    sb.append("    subNamespace: ").append(toIndentedString(subNamespace)).append("\n");
    sb.append("    topN: ").append(toIndentedString(topN)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy