|
| 1 | +/* |
| 2 | + * vefaas |
| 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.vefaas.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.vefaas.model.KafkaCredentialsForCreateKafkaTriggerInput; |
| 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 | + * CreateKafkaTriggerRequest |
| 29 | + */ |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | +public class CreateKafkaTriggerRequest { |
| 34 | + @SerializedName("Description") |
| 35 | + private String description = null; |
| 36 | + |
| 37 | + @SerializedName("Enabled") |
| 38 | + private Boolean enabled = null; |
| 39 | + |
| 40 | + @SerializedName("FunctionId") |
| 41 | + private String functionId = null; |
| 42 | + |
| 43 | + @SerializedName("KafkaCredentials") |
| 44 | + private KafkaCredentialsForCreateKafkaTriggerInput kafkaCredentials = null; |
| 45 | + |
| 46 | + @SerializedName("MaximumRetryAttempts") |
| 47 | + private Integer maximumRetryAttempts = null; |
| 48 | + |
| 49 | + @SerializedName("MqInstanceId") |
| 50 | + private String mqInstanceId = null; |
| 51 | + |
| 52 | + @SerializedName("Name") |
| 53 | + private String name = null; |
| 54 | + |
| 55 | + @SerializedName("StartingPosition") |
| 56 | + private String startingPosition = null; |
| 57 | + |
| 58 | + @SerializedName("TopicName") |
| 59 | + private String topicName = null; |
| 60 | + |
| 61 | + public CreateKafkaTriggerRequest description(String description) { |
| 62 | + this.description = description; |
| 63 | + return this; |
| 64 | + } |
| 65 | + |
| 66 | + /** |
| 67 | + * Get description |
| 68 | + * @return description |
| 69 | + **/ |
| 70 | + @Schema(description = "") |
| 71 | + public String getDescription() { |
| 72 | + return description; |
| 73 | + } |
| 74 | + |
| 75 | + public void setDescription(String description) { |
| 76 | + this.description = description; |
| 77 | + } |
| 78 | + |
| 79 | + public CreateKafkaTriggerRequest enabled(Boolean enabled) { |
| 80 | + this.enabled = enabled; |
| 81 | + return this; |
| 82 | + } |
| 83 | + |
| 84 | + /** |
| 85 | + * Get enabled |
| 86 | + * @return enabled |
| 87 | + **/ |
| 88 | + @Schema(description = "") |
| 89 | + public Boolean isEnabled() { |
| 90 | + return enabled; |
| 91 | + } |
| 92 | + |
| 93 | + public void setEnabled(Boolean enabled) { |
| 94 | + this.enabled = enabled; |
| 95 | + } |
| 96 | + |
| 97 | + public CreateKafkaTriggerRequest functionId(String functionId) { |
| 98 | + this.functionId = functionId; |
| 99 | + return this; |
| 100 | + } |
| 101 | + |
| 102 | + /** |
| 103 | + * Get functionId |
| 104 | + * @return functionId |
| 105 | + **/ |
| 106 | + @NotNull |
| 107 | + @Schema(required = true, description = "") |
| 108 | + public String getFunctionId() { |
| 109 | + return functionId; |
| 110 | + } |
| 111 | + |
| 112 | + public void setFunctionId(String functionId) { |
| 113 | + this.functionId = functionId; |
| 114 | + } |
| 115 | + |
| 116 | + public CreateKafkaTriggerRequest kafkaCredentials(KafkaCredentialsForCreateKafkaTriggerInput kafkaCredentials) { |
| 117 | + this.kafkaCredentials = kafkaCredentials; |
| 118 | + return this; |
| 119 | + } |
| 120 | + |
| 121 | + /** |
| 122 | + * Get kafkaCredentials |
| 123 | + * @return kafkaCredentials |
| 124 | + **/ |
| 125 | + @Valid |
| 126 | + @Schema(description = "") |
| 127 | + public KafkaCredentialsForCreateKafkaTriggerInput getKafkaCredentials() { |
| 128 | + return kafkaCredentials; |
| 129 | + } |
| 130 | + |
| 131 | + public void setKafkaCredentials(KafkaCredentialsForCreateKafkaTriggerInput kafkaCredentials) { |
| 132 | + this.kafkaCredentials = kafkaCredentials; |
| 133 | + } |
| 134 | + |
| 135 | + public CreateKafkaTriggerRequest maximumRetryAttempts(Integer maximumRetryAttempts) { |
| 136 | + this.maximumRetryAttempts = maximumRetryAttempts; |
| 137 | + return this; |
| 138 | + } |
| 139 | + |
| 140 | + /** |
| 141 | + * Get maximumRetryAttempts |
| 142 | + * @return maximumRetryAttempts |
| 143 | + **/ |
| 144 | + @Schema(description = "") |
| 145 | + public Integer getMaximumRetryAttempts() { |
| 146 | + return maximumRetryAttempts; |
| 147 | + } |
| 148 | + |
| 149 | + public void setMaximumRetryAttempts(Integer maximumRetryAttempts) { |
| 150 | + this.maximumRetryAttempts = maximumRetryAttempts; |
| 151 | + } |
| 152 | + |
| 153 | + public CreateKafkaTriggerRequest mqInstanceId(String mqInstanceId) { |
| 154 | + this.mqInstanceId = mqInstanceId; |
| 155 | + return this; |
| 156 | + } |
| 157 | + |
| 158 | + /** |
| 159 | + * Get mqInstanceId |
| 160 | + * @return mqInstanceId |
| 161 | + **/ |
| 162 | + @NotNull |
| 163 | + @Schema(required = true, description = "") |
| 164 | + public String getMqInstanceId() { |
| 165 | + return mqInstanceId; |
| 166 | + } |
| 167 | + |
| 168 | + public void setMqInstanceId(String mqInstanceId) { |
| 169 | + this.mqInstanceId = mqInstanceId; |
| 170 | + } |
| 171 | + |
| 172 | + public CreateKafkaTriggerRequest name(String name) { |
| 173 | + this.name = name; |
| 174 | + return this; |
| 175 | + } |
| 176 | + |
| 177 | + /** |
| 178 | + * Get name |
| 179 | + * @return name |
| 180 | + **/ |
| 181 | + @NotNull |
| 182 | + @Schema(required = true, description = "") |
| 183 | + public String getName() { |
| 184 | + return name; |
| 185 | + } |
| 186 | + |
| 187 | + public void setName(String name) { |
| 188 | + this.name = name; |
| 189 | + } |
| 190 | + |
| 191 | + public CreateKafkaTriggerRequest startingPosition(String startingPosition) { |
| 192 | + this.startingPosition = startingPosition; |
| 193 | + return this; |
| 194 | + } |
| 195 | + |
| 196 | + /** |
| 197 | + * Get startingPosition |
| 198 | + * @return startingPosition |
| 199 | + **/ |
| 200 | + @Schema(description = "") |
| 201 | + public String getStartingPosition() { |
| 202 | + return startingPosition; |
| 203 | + } |
| 204 | + |
| 205 | + public void setStartingPosition(String startingPosition) { |
| 206 | + this.startingPosition = startingPosition; |
| 207 | + } |
| 208 | + |
| 209 | + public CreateKafkaTriggerRequest topicName(String topicName) { |
| 210 | + this.topicName = topicName; |
| 211 | + return this; |
| 212 | + } |
| 213 | + |
| 214 | + /** |
| 215 | + * Get topicName |
| 216 | + * @return topicName |
| 217 | + **/ |
| 218 | + @NotNull |
| 219 | + @Schema(required = true, description = "") |
| 220 | + public String getTopicName() { |
| 221 | + return topicName; |
| 222 | + } |
| 223 | + |
| 224 | + public void setTopicName(String topicName) { |
| 225 | + this.topicName = topicName; |
| 226 | + } |
| 227 | + |
| 228 | + |
| 229 | + @Override |
| 230 | + public boolean equals(java.lang.Object o) { |
| 231 | + if (this == o) { |
| 232 | + return true; |
| 233 | + } |
| 234 | + if (o == null || getClass() != o.getClass()) { |
| 235 | + return false; |
| 236 | + } |
| 237 | + CreateKafkaTriggerRequest createKafkaTriggerRequest = (CreateKafkaTriggerRequest) o; |
| 238 | + return Objects.equals(this.description, createKafkaTriggerRequest.description) && |
| 239 | + Objects.equals(this.enabled, createKafkaTriggerRequest.enabled) && |
| 240 | + Objects.equals(this.functionId, createKafkaTriggerRequest.functionId) && |
| 241 | + Objects.equals(this.kafkaCredentials, createKafkaTriggerRequest.kafkaCredentials) && |
| 242 | + Objects.equals(this.maximumRetryAttempts, createKafkaTriggerRequest.maximumRetryAttempts) && |
| 243 | + Objects.equals(this.mqInstanceId, createKafkaTriggerRequest.mqInstanceId) && |
| 244 | + Objects.equals(this.name, createKafkaTriggerRequest.name) && |
| 245 | + Objects.equals(this.startingPosition, createKafkaTriggerRequest.startingPosition) && |
| 246 | + Objects.equals(this.topicName, createKafkaTriggerRequest.topicName); |
| 247 | + } |
| 248 | + |
| 249 | + @Override |
| 250 | + public int hashCode() { |
| 251 | + return Objects.hash(description, enabled, functionId, kafkaCredentials, maximumRetryAttempts, mqInstanceId, name, startingPosition, topicName); |
| 252 | + } |
| 253 | + |
| 254 | + |
| 255 | + @Override |
| 256 | + public String toString() { |
| 257 | + StringBuilder sb = new StringBuilder(); |
| 258 | + sb.append("class CreateKafkaTriggerRequest {\n"); |
| 259 | + |
| 260 | + sb.append(" description: ").append(toIndentedString(description)).append("\n"); |
| 261 | + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); |
| 262 | + sb.append(" functionId: ").append(toIndentedString(functionId)).append("\n"); |
| 263 | + sb.append(" kafkaCredentials: ").append(toIndentedString(kafkaCredentials)).append("\n"); |
| 264 | + sb.append(" maximumRetryAttempts: ").append(toIndentedString(maximumRetryAttempts)).append("\n"); |
| 265 | + sb.append(" mqInstanceId: ").append(toIndentedString(mqInstanceId)).append("\n"); |
| 266 | + sb.append(" name: ").append(toIndentedString(name)).append("\n"); |
| 267 | + sb.append(" startingPosition: ").append(toIndentedString(startingPosition)).append("\n"); |
| 268 | + sb.append(" topicName: ").append(toIndentedString(topicName)).append("\n"); |
| 269 | + sb.append("}"); |
| 270 | + return sb.toString(); |
| 271 | + } |
| 272 | + |
| 273 | + /** |
| 274 | + * Convert the given object to string with each line indented by 4 spaces |
| 275 | + * (except the first line). |
| 276 | + */ |
| 277 | + private String toIndentedString(java.lang.Object o) { |
| 278 | + if (o == null) { |
| 279 | + return "null"; |
| 280 | + } |
| 281 | + return o.toString().replace("\n", "\n "); |
| 282 | + } |
| 283 | + |
| 284 | +} |
0 commit comments