
com.vmware.avi.sdk.model.AvgUptimeChangeDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of avisdk Show documentation
Show all versions of avisdk Show documentation
Avi SDK is a java API which creates a session with controller and perform CRUD operations.
/*
* Copyright 2021 VMware, Inc.
* SPDX-License-Identifier: Apache License 2.0
*/
package com.vmware.avi.sdk.model;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
/**
* The AvgUptimeChangeDetails is a POJO class extends AviRestResource that used for creating
* AvgUptimeChangeDetails.
*
* @version 1.0
* @since
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AvgUptimeChangeDetails {
@JsonProperty("current_value")
private Float currentValue;
@JsonProperty("metric_id")
private String metricId;
@JsonProperty("metric_name")
private String metricName;
@JsonProperty("resource_str")
private String resourceStr;
@JsonProperty("threshold")
private Float threshold;
/**
* This is the getter method this will return the attribute value.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return currentValue
*/
public Float getCurrentValue() {
return currentValue;
}
/**
* This is the setter method to the attribute.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param currentValue set the currentValue.
*/
public void setCurrentValue(Float currentValue) {
this.currentValue = currentValue;
}
/**
* This is the getter method this will return the attribute value.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return metricId
*/
public String getMetricId() {
return metricId;
}
/**
* This is the setter method to the attribute.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param metricId set the metricId.
*/
public void setMetricId(String metricId) {
this.metricId = metricId;
}
/**
* This is the getter method this will return the attribute value.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return metricName
*/
public String getMetricName() {
return metricName;
}
/**
* This is the setter method to the attribute.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param metricName set the metricName.
*/
public void setMetricName(String metricName) {
this.metricName = metricName;
}
/**
* This is the getter method this will return the attribute value.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return resourceStr
*/
public String getResourceStr() {
return resourceStr;
}
/**
* This is the setter method to the attribute.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param resourceStr set the resourceStr.
*/
public void setResourceStr(String resourceStr) {
this.resourceStr = resourceStr;
}
/**
* This is the getter method this will return the attribute value.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return threshold
*/
public Float getThreshold() {
return threshold;
}
/**
* This is the setter method to the attribute.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param threshold set the threshold.
*/
public void setThreshold(Float threshold) {
this.threshold = threshold;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AvgUptimeChangeDetails objAvgUptimeChangeDetails = (AvgUptimeChangeDetails) o;
return Objects.equals(this.metricName, objAvgUptimeChangeDetails.metricName)&&
Objects.equals(this.metricId, objAvgUptimeChangeDetails.metricId)&&
Objects.equals(this.currentValue, objAvgUptimeChangeDetails.currentValue)&&
Objects.equals(this.threshold, objAvgUptimeChangeDetails.threshold)&&
Objects.equals(this.resourceStr, objAvgUptimeChangeDetails.resourceStr);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AvgUptimeChangeDetails {\n");
sb.append(" currentValue: ").append(toIndentedString(currentValue)).append("\n");
sb.append(" metricId: ").append(toIndentedString(metricId)).append("\n");
sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n");
sb.append(" resourceStr: ").append(toIndentedString(resourceStr)).append("\n");
sb.append(" threshold: ").append(toIndentedString(threshold)).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 - 2025 Weber Informatics LLC | Privacy Policy