|
| 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.NotifyTemplateForListPresetAlertTemplatesOutput; |
| 23 | +import io.swagger.v3.oas.annotations.media.Schema; |
| 24 | +import java.io.IOException; |
| 25 | +import java.util.ArrayList; |
| 26 | +import java.util.List; |
| 27 | +import javax.validation.constraints.*; |
| 28 | +import javax.validation.Valid; |
| 29 | +/** |
| 30 | + * AlertNotificationForListPresetAlertTemplatesOutput |
| 31 | + */ |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | +public class AlertNotificationForListPresetAlertTemplatesOutput { |
| 36 | + @SerializedName("AlertMethods") |
| 37 | + private List<String> alertMethods = null; |
| 38 | + |
| 39 | + @SerializedName("ContactGroupIds") |
| 40 | + private List<String> contactGroupIds = null; |
| 41 | + |
| 42 | + @SerializedName("EffectEndAt") |
| 43 | + private String effectEndAt = null; |
| 44 | + |
| 45 | + @SerializedName("EffectStartAt") |
| 46 | + private String effectStartAt = null; |
| 47 | + |
| 48 | + @SerializedName("NotificationId") |
| 49 | + private String notificationId = null; |
| 50 | + |
| 51 | + @SerializedName("NotifyTemplates") |
| 52 | + private List<NotifyTemplateForListPresetAlertTemplatesOutput> notifyTemplates = null; |
| 53 | + |
| 54 | + @SerializedName("Webhook") |
| 55 | + private String webhook = null; |
| 56 | + |
| 57 | + @SerializedName("WebhookIds") |
| 58 | + private List<String> webhookIds = null; |
| 59 | + |
| 60 | + public AlertNotificationForListPresetAlertTemplatesOutput alertMethods(List<String> alertMethods) { |
| 61 | + this.alertMethods = alertMethods; |
| 62 | + return this; |
| 63 | + } |
| 64 | + |
| 65 | + public AlertNotificationForListPresetAlertTemplatesOutput addAlertMethodsItem(String alertMethodsItem) { |
| 66 | + if (this.alertMethods == null) { |
| 67 | + this.alertMethods = new ArrayList<String>(); |
| 68 | + } |
| 69 | + this.alertMethods.add(alertMethodsItem); |
| 70 | + return this; |
| 71 | + } |
| 72 | + |
| 73 | + /** |
| 74 | + * Get alertMethods |
| 75 | + * @return alertMethods |
| 76 | + **/ |
| 77 | + @Schema(description = "") |
| 78 | + public List<String> getAlertMethods() { |
| 79 | + return alertMethods; |
| 80 | + } |
| 81 | + |
| 82 | + public void setAlertMethods(List<String> alertMethods) { |
| 83 | + this.alertMethods = alertMethods; |
| 84 | + } |
| 85 | + |
| 86 | + public AlertNotificationForListPresetAlertTemplatesOutput contactGroupIds(List<String> contactGroupIds) { |
| 87 | + this.contactGroupIds = contactGroupIds; |
| 88 | + return this; |
| 89 | + } |
| 90 | + |
| 91 | + public AlertNotificationForListPresetAlertTemplatesOutput addContactGroupIdsItem(String contactGroupIdsItem) { |
| 92 | + if (this.contactGroupIds == null) { |
| 93 | + this.contactGroupIds = new ArrayList<String>(); |
| 94 | + } |
| 95 | + this.contactGroupIds.add(contactGroupIdsItem); |
| 96 | + return this; |
| 97 | + } |
| 98 | + |
| 99 | + /** |
| 100 | + * Get contactGroupIds |
| 101 | + * @return contactGroupIds |
| 102 | + **/ |
| 103 | + @Schema(description = "") |
| 104 | + public List<String> getContactGroupIds() { |
| 105 | + return contactGroupIds; |
| 106 | + } |
| 107 | + |
| 108 | + public void setContactGroupIds(List<String> contactGroupIds) { |
| 109 | + this.contactGroupIds = contactGroupIds; |
| 110 | + } |
| 111 | + |
| 112 | + public AlertNotificationForListPresetAlertTemplatesOutput effectEndAt(String effectEndAt) { |
| 113 | + this.effectEndAt = effectEndAt; |
| 114 | + return this; |
| 115 | + } |
| 116 | + |
| 117 | + /** |
| 118 | + * Get effectEndAt |
| 119 | + * @return effectEndAt |
| 120 | + **/ |
| 121 | + @Schema(description = "") |
| 122 | + public String getEffectEndAt() { |
| 123 | + return effectEndAt; |
| 124 | + } |
| 125 | + |
| 126 | + public void setEffectEndAt(String effectEndAt) { |
| 127 | + this.effectEndAt = effectEndAt; |
| 128 | + } |
| 129 | + |
| 130 | + public AlertNotificationForListPresetAlertTemplatesOutput effectStartAt(String effectStartAt) { |
| 131 | + this.effectStartAt = effectStartAt; |
| 132 | + return this; |
| 133 | + } |
| 134 | + |
| 135 | + /** |
| 136 | + * Get effectStartAt |
| 137 | + * @return effectStartAt |
| 138 | + **/ |
| 139 | + @Schema(description = "") |
| 140 | + public String getEffectStartAt() { |
| 141 | + return effectStartAt; |
| 142 | + } |
| 143 | + |
| 144 | + public void setEffectStartAt(String effectStartAt) { |
| 145 | + this.effectStartAt = effectStartAt; |
| 146 | + } |
| 147 | + |
| 148 | + public AlertNotificationForListPresetAlertTemplatesOutput notificationId(String notificationId) { |
| 149 | + this.notificationId = notificationId; |
| 150 | + return this; |
| 151 | + } |
| 152 | + |
| 153 | + /** |
| 154 | + * Get notificationId |
| 155 | + * @return notificationId |
| 156 | + **/ |
| 157 | + @Schema(description = "") |
| 158 | + public String getNotificationId() { |
| 159 | + return notificationId; |
| 160 | + } |
| 161 | + |
| 162 | + public void setNotificationId(String notificationId) { |
| 163 | + this.notificationId = notificationId; |
| 164 | + } |
| 165 | + |
| 166 | + public AlertNotificationForListPresetAlertTemplatesOutput notifyTemplates(List<NotifyTemplateForListPresetAlertTemplatesOutput> notifyTemplates) { |
| 167 | + this.notifyTemplates = notifyTemplates; |
| 168 | + return this; |
| 169 | + } |
| 170 | + |
| 171 | + public AlertNotificationForListPresetAlertTemplatesOutput addNotifyTemplatesItem(NotifyTemplateForListPresetAlertTemplatesOutput notifyTemplatesItem) { |
| 172 | + if (this.notifyTemplates == null) { |
| 173 | + this.notifyTemplates = new ArrayList<NotifyTemplateForListPresetAlertTemplatesOutput>(); |
| 174 | + } |
| 175 | + this.notifyTemplates.add(notifyTemplatesItem); |
| 176 | + return this; |
| 177 | + } |
| 178 | + |
| 179 | + /** |
| 180 | + * Get notifyTemplates |
| 181 | + * @return notifyTemplates |
| 182 | + **/ |
| 183 | + @Valid |
| 184 | + @Schema(description = "") |
| 185 | + public List<NotifyTemplateForListPresetAlertTemplatesOutput> getNotifyTemplates() { |
| 186 | + return notifyTemplates; |
| 187 | + } |
| 188 | + |
| 189 | + public void setNotifyTemplates(List<NotifyTemplateForListPresetAlertTemplatesOutput> notifyTemplates) { |
| 190 | + this.notifyTemplates = notifyTemplates; |
| 191 | + } |
| 192 | + |
| 193 | + public AlertNotificationForListPresetAlertTemplatesOutput webhook(String webhook) { |
| 194 | + this.webhook = webhook; |
| 195 | + return this; |
| 196 | + } |
| 197 | + |
| 198 | + /** |
| 199 | + * Get webhook |
| 200 | + * @return webhook |
| 201 | + **/ |
| 202 | + @Schema(description = "") |
| 203 | + public String getWebhook() { |
| 204 | + return webhook; |
| 205 | + } |
| 206 | + |
| 207 | + public void setWebhook(String webhook) { |
| 208 | + this.webhook = webhook; |
| 209 | + } |
| 210 | + |
| 211 | + public AlertNotificationForListPresetAlertTemplatesOutput webhookIds(List<String> webhookIds) { |
| 212 | + this.webhookIds = webhookIds; |
| 213 | + return this; |
| 214 | + } |
| 215 | + |
| 216 | + public AlertNotificationForListPresetAlertTemplatesOutput addWebhookIdsItem(String webhookIdsItem) { |
| 217 | + if (this.webhookIds == null) { |
| 218 | + this.webhookIds = new ArrayList<String>(); |
| 219 | + } |
| 220 | + this.webhookIds.add(webhookIdsItem); |
| 221 | + return this; |
| 222 | + } |
| 223 | + |
| 224 | + /** |
| 225 | + * Get webhookIds |
| 226 | + * @return webhookIds |
| 227 | + **/ |
| 228 | + @Schema(description = "") |
| 229 | + public List<String> getWebhookIds() { |
| 230 | + return webhookIds; |
| 231 | + } |
| 232 | + |
| 233 | + public void setWebhookIds(List<String> webhookIds) { |
| 234 | + this.webhookIds = webhookIds; |
| 235 | + } |
| 236 | + |
| 237 | + |
| 238 | + @Override |
| 239 | + public boolean equals(java.lang.Object o) { |
| 240 | + if (this == o) { |
| 241 | + return true; |
| 242 | + } |
| 243 | + if (o == null || getClass() != o.getClass()) { |
| 244 | + return false; |
| 245 | + } |
| 246 | + AlertNotificationForListPresetAlertTemplatesOutput alertNotificationForListPresetAlertTemplatesOutput = (AlertNotificationForListPresetAlertTemplatesOutput) o; |
| 247 | + return Objects.equals(this.alertMethods, alertNotificationForListPresetAlertTemplatesOutput.alertMethods) && |
| 248 | + Objects.equals(this.contactGroupIds, alertNotificationForListPresetAlertTemplatesOutput.contactGroupIds) && |
| 249 | + Objects.equals(this.effectEndAt, alertNotificationForListPresetAlertTemplatesOutput.effectEndAt) && |
| 250 | + Objects.equals(this.effectStartAt, alertNotificationForListPresetAlertTemplatesOutput.effectStartAt) && |
| 251 | + Objects.equals(this.notificationId, alertNotificationForListPresetAlertTemplatesOutput.notificationId) && |
| 252 | + Objects.equals(this.notifyTemplates, alertNotificationForListPresetAlertTemplatesOutput.notifyTemplates) && |
| 253 | + Objects.equals(this.webhook, alertNotificationForListPresetAlertTemplatesOutput.webhook) && |
| 254 | + Objects.equals(this.webhookIds, alertNotificationForListPresetAlertTemplatesOutput.webhookIds); |
| 255 | + } |
| 256 | + |
| 257 | + @Override |
| 258 | + public int hashCode() { |
| 259 | + return Objects.hash(alertMethods, contactGroupIds, effectEndAt, effectStartAt, notificationId, notifyTemplates, webhook, webhookIds); |
| 260 | + } |
| 261 | + |
| 262 | + |
| 263 | + @Override |
| 264 | + public String toString() { |
| 265 | + StringBuilder sb = new StringBuilder(); |
| 266 | + sb.append("class AlertNotificationForListPresetAlertTemplatesOutput {\n"); |
| 267 | + |
| 268 | + sb.append(" alertMethods: ").append(toIndentedString(alertMethods)).append("\n"); |
| 269 | + sb.append(" contactGroupIds: ").append(toIndentedString(contactGroupIds)).append("\n"); |
| 270 | + sb.append(" effectEndAt: ").append(toIndentedString(effectEndAt)).append("\n"); |
| 271 | + sb.append(" effectStartAt: ").append(toIndentedString(effectStartAt)).append("\n"); |
| 272 | + sb.append(" notificationId: ").append(toIndentedString(notificationId)).append("\n"); |
| 273 | + sb.append(" notifyTemplates: ").append(toIndentedString(notifyTemplates)).append("\n"); |
| 274 | + sb.append(" webhook: ").append(toIndentedString(webhook)).append("\n"); |
| 275 | + sb.append(" webhookIds: ").append(toIndentedString(webhookIds)).append("\n"); |
| 276 | + sb.append("}"); |
| 277 | + return sb.toString(); |
| 278 | + } |
| 279 | + |
| 280 | + /** |
| 281 | + * Convert the given object to string with each line indented by 4 spaces |
| 282 | + * (except the first line). |
| 283 | + */ |
| 284 | + private String toIndentedString(java.lang.Object o) { |
| 285 | + if (o == null) { |
| 286 | + return "null"; |
| 287 | + } |
| 288 | + return o.toString().replace("\n", "\n "); |
| 289 | + } |
| 290 | + |
| 291 | +} |
0 commit comments