com.seeq.model.MonitorInputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 63.1.6-v202409101657
*
*
* 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.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.seeq.model.GaugeDatumV1;
import com.seeq.model.MeterDatumV1;
import com.seeq.model.TimerDatumV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* MonitorInputV1
*/
public class MonitorInputV1 {
@JsonProperty("gauges")
private List gauges = new ArrayList();
@JsonProperty("meters")
private List meters = new ArrayList();
@JsonProperty("timers")
private List timers = new ArrayList();
public MonitorInputV1 gauges(List gauges) {
this.gauges = gauges;
return this;
}
public MonitorInputV1 addGaugesItem(GaugeDatumV1 gaugesItem) {
if (this.gauges == null) {
this.gauges = new ArrayList();
}
this.gauges.add(gaugesItem);
return this;
}
/**
* List of gauges to update
* @return gauges
**/
@Schema(description = "List of gauges to update")
public List getGauges() {
return gauges;
}
public void setGauges(List gauges) {
this.gauges = gauges;
}
public MonitorInputV1 meters(List meters) {
this.meters = meters;
return this;
}
public MonitorInputV1 addMetersItem(MeterDatumV1 metersItem) {
if (this.meters == null) {
this.meters = new ArrayList();
}
this.meters.add(metersItem);
return this;
}
/**
* List of meters to update
* @return meters
**/
@Schema(description = "List of meters to update")
public List getMeters() {
return meters;
}
public void setMeters(List meters) {
this.meters = meters;
}
public MonitorInputV1 timers(List timers) {
this.timers = timers;
return this;
}
public MonitorInputV1 addTimersItem(TimerDatumV1 timersItem) {
if (this.timers == null) {
this.timers = new ArrayList();
}
this.timers.add(timersItem);
return this;
}
/**
* List of timers to update
* @return timers
**/
@Schema(description = "List of timers to update")
public List getTimers() {
return timers;
}
public void setTimers(List timers) {
this.timers = timers;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MonitorInputV1 monitorInputV1 = (MonitorInputV1) o;
return Objects.equals(this.gauges, monitorInputV1.gauges) &&
Objects.equals(this.meters, monitorInputV1.meters) &&
Objects.equals(this.timers, monitorInputV1.timers);
}
@Override
public int hashCode() {
return Objects.hash(gauges, meters, timers);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MonitorInputV1 {\n");
sb.append(" gauges: ").append(toIndentedString(gauges)).append("\n");
sb.append(" meters: ").append(toIndentedString(meters)).append("\n");
sb.append(" timers: ").append(toIndentedString(timers)).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 ");
}
}