Content 50 + AI 39 + Knowledge 59 + Market 32 + Account 33 + Meta 16 = 229 修复 Knowledge YAML 重复 key 重新生成 TypeScript 类型包(7 文件)+ Java DTO 骨架(626 类)
137 lines
4.0 KiB
Java
137 lines
4.0 KiB
Java
package com.muse.dto;
|
|
|
|
import java.net.URI;
|
|
import java.util.Objects;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
|
import org.springframework.lang.Nullable;
|
|
import java.io.Serializable;
|
|
import java.time.OffsetDateTime;
|
|
import jakarta.validation.Valid;
|
|
import jakarta.validation.constraints.*;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
|
import java.util.*;
|
|
import jakarta.annotation.Generated;
|
|
|
|
/**
|
|
* ProtectionNodeDetailObservabilityMetricsInner
|
|
*/
|
|
|
|
@JsonTypeName("ProtectionNodeDetail_observabilityMetrics_inner")
|
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2026-05-24T15:05:54.603829+08:00[Asia/Shanghai]", comments = "Generator version: 7.22.0")
|
|
public class ProtectionNodeDetailObservabilityMetricsInner implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable String metricName;
|
|
|
|
private @Nullable String metricValue;
|
|
|
|
private @Nullable String description;
|
|
|
|
public ProtectionNodeDetailObservabilityMetricsInner metricName(@Nullable String metricName) {
|
|
this.metricName = metricName;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get metricName
|
|
* @return metricName
|
|
*/
|
|
|
|
@Schema(name = "metricName", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("metricName")
|
|
public @Nullable String getMetricName() {
|
|
return metricName;
|
|
}
|
|
|
|
@JsonProperty("metricName")
|
|
public void setMetricName(@Nullable String metricName) {
|
|
this.metricName = metricName;
|
|
}
|
|
|
|
public ProtectionNodeDetailObservabilityMetricsInner metricValue(@Nullable String metricValue) {
|
|
this.metricValue = metricValue;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get metricValue
|
|
* @return metricValue
|
|
*/
|
|
|
|
@Schema(name = "metricValue", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("metricValue")
|
|
public @Nullable String getMetricValue() {
|
|
return metricValue;
|
|
}
|
|
|
|
@JsonProperty("metricValue")
|
|
public void setMetricValue(@Nullable String metricValue) {
|
|
this.metricValue = metricValue;
|
|
}
|
|
|
|
public ProtectionNodeDetailObservabilityMetricsInner description(@Nullable String description) {
|
|
this.description = description;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get description
|
|
* @return description
|
|
*/
|
|
|
|
@Schema(name = "description", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("description")
|
|
public @Nullable String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
@JsonProperty("description")
|
|
public void setDescription(@Nullable String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
ProtectionNodeDetailObservabilityMetricsInner protectionNodeDetailObservabilityMetricsInner = (ProtectionNodeDetailObservabilityMetricsInner) o;
|
|
return Objects.equals(this.metricName, protectionNodeDetailObservabilityMetricsInner.metricName) &&
|
|
Objects.equals(this.metricValue, protectionNodeDetailObservabilityMetricsInner.metricValue) &&
|
|
Objects.equals(this.description, protectionNodeDetailObservabilityMetricsInner.description);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(metricName, metricValue, description);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class ProtectionNodeDetailObservabilityMetricsInner {\n");
|
|
sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n");
|
|
sb.append(" metricValue: ").append(toIndentedString(metricValue)).append("\n");
|
|
sb.append(" description: ").append(toIndentedString(description)).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(@Nullable Object o) {
|
|
return o == null ? "null" : o.toString().replace("\n", "\n ");
|
|
}
|
|
}
|
|
|