
com.huaweicloud.sdk.functiongraph.v2.model.MonthUsed Maven / Gradle / Ivy
package com.huaweicloud.sdk.functiongraph.v2.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/** MonthUsed */
public class MonthUsed {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "date")
private String date;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "value")
private Float value;
public MonthUsed withDate(String date) {
this.date = date;
return this;
}
/** 日期
*
* @return date */
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public MonthUsed withValue(Float value) {
this.value = value;
return this;
}
/** 使用量
*
* @return value */
public Float getValue() {
return value;
}
public void setValue(Float value) {
this.value = value;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MonthUsed monthUsed = (MonthUsed) o;
return Objects.equals(this.date, monthUsed.date) && Objects.equals(this.value, monthUsed.value);
}
@Override
public int hashCode() {
return Objects.hash(date, value);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MonthUsed {\n");
sb.append(" date: ").append(toIndentedString(date)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).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