com.mux.sdk.models.MonitoringBreakdownTimeseriesDatapoint Maven / Gradle / Ivy
The newest version!
/*
* Mux API
* Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
*
* The version of the OpenAPI document: v1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.mux.sdk.models;
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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* MonitoringBreakdownTimeseriesDatapoint
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class MonitoringBreakdownTimeseriesDatapoint {
public static final String SERIALIZED_NAME_VALUE = "value";
@SerializedName(SERIALIZED_NAME_VALUE)
private String value;
public static final String SERIALIZED_NAME_METRIC_VALUE = "metric_value";
@SerializedName(SERIALIZED_NAME_METRIC_VALUE)
private Double metricValue;
public static final String SERIALIZED_NAME_CONCURRENT_VIEWERS = "concurrent_viewers";
@SerializedName(SERIALIZED_NAME_CONCURRENT_VIEWERS)
private Long concurrentViewers;
public static final String SERIALIZED_NAME_STARTING_UP_VIEWERS = "starting_up_viewers";
@SerializedName(SERIALIZED_NAME_STARTING_UP_VIEWERS)
private Long startingUpViewers;
public MonitoringBreakdownTimeseriesDatapoint value(String value) {
this.value = value;
return this;
}
/**
* Get value
* @return value
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public MonitoringBreakdownTimeseriesDatapoint metricValue(Double metricValue) {
this.metricValue = metricValue;
return this;
}
/**
* Get metricValue
* @return metricValue
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Double getMetricValue() {
return metricValue;
}
public void setMetricValue(Double metricValue) {
this.metricValue = metricValue;
}
public MonitoringBreakdownTimeseriesDatapoint concurrentViewers(Long concurrentViewers) {
this.concurrentViewers = concurrentViewers;
return this;
}
/**
* Get concurrentViewers
* @return concurrentViewers
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getConcurrentViewers() {
return concurrentViewers;
}
public void setConcurrentViewers(Long concurrentViewers) {
this.concurrentViewers = concurrentViewers;
}
public MonitoringBreakdownTimeseriesDatapoint startingUpViewers(Long startingUpViewers) {
this.startingUpViewers = startingUpViewers;
return this;
}
/**
* Get startingUpViewers
* @return startingUpViewers
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getStartingUpViewers() {
return startingUpViewers;
}
public void setStartingUpViewers(Long startingUpViewers) {
this.startingUpViewers = startingUpViewers;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MonitoringBreakdownTimeseriesDatapoint monitoringBreakdownTimeseriesDatapoint = (MonitoringBreakdownTimeseriesDatapoint) o;
return Objects.equals(this.value, monitoringBreakdownTimeseriesDatapoint.value) &&
Objects.equals(this.metricValue, monitoringBreakdownTimeseriesDatapoint.metricValue) &&
Objects.equals(this.concurrentViewers, monitoringBreakdownTimeseriesDatapoint.concurrentViewers) &&
Objects.equals(this.startingUpViewers, monitoringBreakdownTimeseriesDatapoint.startingUpViewers);
}
@Override
public int hashCode() {
return Objects.hash(value, metricValue, concurrentViewers, startingUpViewers);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MonitoringBreakdownTimeseriesDatapoint {\n");
sb.append(" value: ").append(toIndentedString(value)).append("\n");
sb.append(" metricValue: ").append(toIndentedString(metricValue)).append("\n");
sb.append(" concurrentViewers: ").append(toIndentedString(concurrentViewers)).append("\n");
sb.append(" startingUpViewers: ").append(toIndentedString(startingUpViewers)).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 ");
}
}