
com.huaweicloud.sdk.functiongraph.v2.model.ListFunctionStatisticsRequest 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;
/** Request Object */
public class ListFunctionStatisticsRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "func_urn")
private String funcUrn;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "period")
private String period;
public ListFunctionStatisticsRequest withFuncUrn(String funcUrn) {
this.funcUrn = funcUrn;
return this;
}
/** 函数的URN(Uniform Resource Name),唯一标识函数。
*
* @return funcUrn */
public String getFuncUrn() {
return funcUrn;
}
public void setFuncUrn(String funcUrn) {
this.funcUrn = funcUrn;
}
public ListFunctionStatisticsRequest withPeriod(String period) {
this.period = period;
return this;
}
/** 获取最近多少分钟内函数执行的指标。
*
* @return period */
public String getPeriod() {
return period;
}
public void setPeriod(String period) {
this.period = period;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ListFunctionStatisticsRequest listFunctionStatisticsRequest = (ListFunctionStatisticsRequest) o;
return Objects.equals(this.funcUrn, listFunctionStatisticsRequest.funcUrn)
&& Objects.equals(this.period, listFunctionStatisticsRequest.period);
}
@Override
public int hashCode() {
return Objects.hash(funcUrn, period);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListFunctionStatisticsRequest {\n");
sb.append(" funcUrn: ").append(toIndentedString(funcUrn)).append("\n");
sb.append(" period: ").append(toIndentedString(period)).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