|
| 1 | +/* |
| 2 | + * cloudmonitor |
| 3 | + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) |
| 4 | + * |
| 5 | + * OpenAPI spec version: common-version |
| 6 | + * |
| 7 | + * |
| 8 | + * NOTE: This class is auto generated by the swagger code generator program. |
| 9 | + * https://github.com/swagger-api/swagger-codegen.git |
| 10 | + * Do not edit the class manually. |
| 11 | + */ |
| 12 | + |
| 13 | +package com.volcengine.cloudmonitor.model; |
| 14 | + |
| 15 | +import java.util.Objects; |
| 16 | +import java.util.Arrays; |
| 17 | +import com.google.gson.TypeAdapter; |
| 18 | +import com.google.gson.annotations.JsonAdapter; |
| 19 | +import com.google.gson.annotations.SerializedName; |
| 20 | +import com.google.gson.stream.JsonReader; |
| 21 | +import com.google.gson.stream.JsonWriter; |
| 22 | +import com.volcengine.cloudmonitor.model.FilterForCreateO11yAgentECSDeployTaskInput; |
| 23 | +import io.swagger.v3.oas.annotations.media.Schema; |
| 24 | +import java.io.IOException; |
| 25 | +import javax.validation.constraints.*; |
| 26 | +import javax.validation.Valid; |
| 27 | +/** |
| 28 | + * CreateO11yAgentECSDeployTaskRequest |
| 29 | + */ |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | +public class CreateO11yAgentECSDeployTaskRequest { |
| 34 | + @SerializedName("Filter") |
| 35 | + private FilterForCreateO11yAgentECSDeployTaskInput filter = null; |
| 36 | + |
| 37 | + @SerializedName("TaskType") |
| 38 | + private String taskType = null; |
| 39 | + |
| 40 | + public CreateO11yAgentECSDeployTaskRequest filter(FilterForCreateO11yAgentECSDeployTaskInput filter) { |
| 41 | + this.filter = filter; |
| 42 | + return this; |
| 43 | + } |
| 44 | + |
| 45 | + /** |
| 46 | + * Get filter |
| 47 | + * @return filter |
| 48 | + **/ |
| 49 | + @Valid |
| 50 | + @Schema(description = "") |
| 51 | + public FilterForCreateO11yAgentECSDeployTaskInput getFilter() { |
| 52 | + return filter; |
| 53 | + } |
| 54 | + |
| 55 | + public void setFilter(FilterForCreateO11yAgentECSDeployTaskInput filter) { |
| 56 | + this.filter = filter; |
| 57 | + } |
| 58 | + |
| 59 | + public CreateO11yAgentECSDeployTaskRequest taskType(String taskType) { |
| 60 | + this.taskType = taskType; |
| 61 | + return this; |
| 62 | + } |
| 63 | + |
| 64 | + /** |
| 65 | + * Get taskType |
| 66 | + * @return taskType |
| 67 | + **/ |
| 68 | + @NotNull |
| 69 | + @Schema(required = true, description = "") |
| 70 | + public String getTaskType() { |
| 71 | + return taskType; |
| 72 | + } |
| 73 | + |
| 74 | + public void setTaskType(String taskType) { |
| 75 | + this.taskType = taskType; |
| 76 | + } |
| 77 | + |
| 78 | + |
| 79 | + @Override |
| 80 | + public boolean equals(java.lang.Object o) { |
| 81 | + if (this == o) { |
| 82 | + return true; |
| 83 | + } |
| 84 | + if (o == null || getClass() != o.getClass()) { |
| 85 | + return false; |
| 86 | + } |
| 87 | + CreateO11yAgentECSDeployTaskRequest createO11yAgentECSDeployTaskRequest = (CreateO11yAgentECSDeployTaskRequest) o; |
| 88 | + return Objects.equals(this.filter, createO11yAgentECSDeployTaskRequest.filter) && |
| 89 | + Objects.equals(this.taskType, createO11yAgentECSDeployTaskRequest.taskType); |
| 90 | + } |
| 91 | + |
| 92 | + @Override |
| 93 | + public int hashCode() { |
| 94 | + return Objects.hash(filter, taskType); |
| 95 | + } |
| 96 | + |
| 97 | + |
| 98 | + @Override |
| 99 | + public String toString() { |
| 100 | + StringBuilder sb = new StringBuilder(); |
| 101 | + sb.append("class CreateO11yAgentECSDeployTaskRequest {\n"); |
| 102 | + |
| 103 | + sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); |
| 104 | + sb.append(" taskType: ").append(toIndentedString(taskType)).append("\n"); |
| 105 | + sb.append("}"); |
| 106 | + return sb.toString(); |
| 107 | + } |
| 108 | + |
| 109 | + /** |
| 110 | + * Convert the given object to string with each line indented by 4 spaces |
| 111 | + * (except the first line). |
| 112 | + */ |
| 113 | + private String toIndentedString(java.lang.Object o) { |
| 114 | + if (o == null) { |
| 115 | + return "null"; |
| 116 | + } |
| 117 | + return o.toString().replace("\n", "\n "); |
| 118 | + } |
| 119 | + |
| 120 | +} |
0 commit comments