|
| 1 | +/* |
| 2 | + * acep |
| 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.acep.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.acep.model.OverlayPersistPropertyForAddPhoneTemplateInput; |
| 23 | +import com.volcengine.acep.model.OverlayPropertyForAddPhoneTemplateInput; |
| 24 | +import com.volcengine.acep.model.OverlaySettingForAddPhoneTemplateInput; |
| 25 | +import io.swagger.v3.oas.annotations.media.Schema; |
| 26 | +import java.io.IOException; |
| 27 | +import java.util.ArrayList; |
| 28 | +import java.util.List; |
| 29 | +import javax.validation.constraints.*; |
| 30 | +import javax.validation.Valid; |
| 31 | +/** |
| 32 | + * AddPhoneTemplateRequest |
| 33 | + */ |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | +public class AddPhoneTemplateRequest { |
| 38 | + @SerializedName("AospVersion") |
| 39 | + private String aospVersion = null; |
| 40 | + |
| 41 | + @SerializedName("OverlayPersistProperty") |
| 42 | + private List<OverlayPersistPropertyForAddPhoneTemplateInput> overlayPersistProperty = null; |
| 43 | + |
| 44 | + @SerializedName("OverlayProperty") |
| 45 | + private List<OverlayPropertyForAddPhoneTemplateInput> overlayProperty = null; |
| 46 | + |
| 47 | + @SerializedName("OverlaySettings") |
| 48 | + private List<OverlaySettingForAddPhoneTemplateInput> overlaySettings = null; |
| 49 | + |
| 50 | + @SerializedName("PhoneTemplateName") |
| 51 | + private String phoneTemplateName = null; |
| 52 | + |
| 53 | + @SerializedName("Status") |
| 54 | + private Integer status = null; |
| 55 | + |
| 56 | + public AddPhoneTemplateRequest aospVersion(String aospVersion) { |
| 57 | + this.aospVersion = aospVersion; |
| 58 | + return this; |
| 59 | + } |
| 60 | + |
| 61 | + /** |
| 62 | + * Get aospVersion |
| 63 | + * @return aospVersion |
| 64 | + **/ |
| 65 | + @NotNull |
| 66 | + @Schema(required = true, description = "") |
| 67 | + public String getAospVersion() { |
| 68 | + return aospVersion; |
| 69 | + } |
| 70 | + |
| 71 | + public void setAospVersion(String aospVersion) { |
| 72 | + this.aospVersion = aospVersion; |
| 73 | + } |
| 74 | + |
| 75 | + public AddPhoneTemplateRequest overlayPersistProperty(List<OverlayPersistPropertyForAddPhoneTemplateInput> overlayPersistProperty) { |
| 76 | + this.overlayPersistProperty = overlayPersistProperty; |
| 77 | + return this; |
| 78 | + } |
| 79 | + |
| 80 | + public AddPhoneTemplateRequest addOverlayPersistPropertyItem(OverlayPersistPropertyForAddPhoneTemplateInput overlayPersistPropertyItem) { |
| 81 | + if (this.overlayPersistProperty == null) { |
| 82 | + this.overlayPersistProperty = new ArrayList<OverlayPersistPropertyForAddPhoneTemplateInput>(); |
| 83 | + } |
| 84 | + this.overlayPersistProperty.add(overlayPersistPropertyItem); |
| 85 | + return this; |
| 86 | + } |
| 87 | + |
| 88 | + /** |
| 89 | + * Get overlayPersistProperty |
| 90 | + * @return overlayPersistProperty |
| 91 | + **/ |
| 92 | + @Valid |
| 93 | + @Schema(description = "") |
| 94 | + public List<OverlayPersistPropertyForAddPhoneTemplateInput> getOverlayPersistProperty() { |
| 95 | + return overlayPersistProperty; |
| 96 | + } |
| 97 | + |
| 98 | + public void setOverlayPersistProperty(List<OverlayPersistPropertyForAddPhoneTemplateInput> overlayPersistProperty) { |
| 99 | + this.overlayPersistProperty = overlayPersistProperty; |
| 100 | + } |
| 101 | + |
| 102 | + public AddPhoneTemplateRequest overlayProperty(List<OverlayPropertyForAddPhoneTemplateInput> overlayProperty) { |
| 103 | + this.overlayProperty = overlayProperty; |
| 104 | + return this; |
| 105 | + } |
| 106 | + |
| 107 | + public AddPhoneTemplateRequest addOverlayPropertyItem(OverlayPropertyForAddPhoneTemplateInput overlayPropertyItem) { |
| 108 | + if (this.overlayProperty == null) { |
| 109 | + this.overlayProperty = new ArrayList<OverlayPropertyForAddPhoneTemplateInput>(); |
| 110 | + } |
| 111 | + this.overlayProperty.add(overlayPropertyItem); |
| 112 | + return this; |
| 113 | + } |
| 114 | + |
| 115 | + /** |
| 116 | + * Get overlayProperty |
| 117 | + * @return overlayProperty |
| 118 | + **/ |
| 119 | + @Valid |
| 120 | + @Schema(description = "") |
| 121 | + public List<OverlayPropertyForAddPhoneTemplateInput> getOverlayProperty() { |
| 122 | + return overlayProperty; |
| 123 | + } |
| 124 | + |
| 125 | + public void setOverlayProperty(List<OverlayPropertyForAddPhoneTemplateInput> overlayProperty) { |
| 126 | + this.overlayProperty = overlayProperty; |
| 127 | + } |
| 128 | + |
| 129 | + public AddPhoneTemplateRequest overlaySettings(List<OverlaySettingForAddPhoneTemplateInput> overlaySettings) { |
| 130 | + this.overlaySettings = overlaySettings; |
| 131 | + return this; |
| 132 | + } |
| 133 | + |
| 134 | + public AddPhoneTemplateRequest addOverlaySettingsItem(OverlaySettingForAddPhoneTemplateInput overlaySettingsItem) { |
| 135 | + if (this.overlaySettings == null) { |
| 136 | + this.overlaySettings = new ArrayList<OverlaySettingForAddPhoneTemplateInput>(); |
| 137 | + } |
| 138 | + this.overlaySettings.add(overlaySettingsItem); |
| 139 | + return this; |
| 140 | + } |
| 141 | + |
| 142 | + /** |
| 143 | + * Get overlaySettings |
| 144 | + * @return overlaySettings |
| 145 | + **/ |
| 146 | + @Valid |
| 147 | + @Schema(description = "") |
| 148 | + public List<OverlaySettingForAddPhoneTemplateInput> getOverlaySettings() { |
| 149 | + return overlaySettings; |
| 150 | + } |
| 151 | + |
| 152 | + public void setOverlaySettings(List<OverlaySettingForAddPhoneTemplateInput> overlaySettings) { |
| 153 | + this.overlaySettings = overlaySettings; |
| 154 | + } |
| 155 | + |
| 156 | + public AddPhoneTemplateRequest phoneTemplateName(String phoneTemplateName) { |
| 157 | + this.phoneTemplateName = phoneTemplateName; |
| 158 | + return this; |
| 159 | + } |
| 160 | + |
| 161 | + /** |
| 162 | + * Get phoneTemplateName |
| 163 | + * @return phoneTemplateName |
| 164 | + **/ |
| 165 | + @NotNull |
| 166 | + @Schema(required = true, description = "") |
| 167 | + public String getPhoneTemplateName() { |
| 168 | + return phoneTemplateName; |
| 169 | + } |
| 170 | + |
| 171 | + public void setPhoneTemplateName(String phoneTemplateName) { |
| 172 | + this.phoneTemplateName = phoneTemplateName; |
| 173 | + } |
| 174 | + |
| 175 | + public AddPhoneTemplateRequest status(Integer status) { |
| 176 | + this.status = status; |
| 177 | + return this; |
| 178 | + } |
| 179 | + |
| 180 | + /** |
| 181 | + * Get status |
| 182 | + * @return status |
| 183 | + **/ |
| 184 | + @NotNull |
| 185 | + @Schema(required = true, description = "") |
| 186 | + public Integer getStatus() { |
| 187 | + return status; |
| 188 | + } |
| 189 | + |
| 190 | + public void setStatus(Integer status) { |
| 191 | + this.status = status; |
| 192 | + } |
| 193 | + |
| 194 | + |
| 195 | + @Override |
| 196 | + public boolean equals(java.lang.Object o) { |
| 197 | + if (this == o) { |
| 198 | + return true; |
| 199 | + } |
| 200 | + if (o == null || getClass() != o.getClass()) { |
| 201 | + return false; |
| 202 | + } |
| 203 | + AddPhoneTemplateRequest addPhoneTemplateRequest = (AddPhoneTemplateRequest) o; |
| 204 | + return Objects.equals(this.aospVersion, addPhoneTemplateRequest.aospVersion) && |
| 205 | + Objects.equals(this.overlayPersistProperty, addPhoneTemplateRequest.overlayPersistProperty) && |
| 206 | + Objects.equals(this.overlayProperty, addPhoneTemplateRequest.overlayProperty) && |
| 207 | + Objects.equals(this.overlaySettings, addPhoneTemplateRequest.overlaySettings) && |
| 208 | + Objects.equals(this.phoneTemplateName, addPhoneTemplateRequest.phoneTemplateName) && |
| 209 | + Objects.equals(this.status, addPhoneTemplateRequest.status); |
| 210 | + } |
| 211 | + |
| 212 | + @Override |
| 213 | + public int hashCode() { |
| 214 | + return Objects.hash(aospVersion, overlayPersistProperty, overlayProperty, overlaySettings, phoneTemplateName, status); |
| 215 | + } |
| 216 | + |
| 217 | + |
| 218 | + @Override |
| 219 | + public String toString() { |
| 220 | + StringBuilder sb = new StringBuilder(); |
| 221 | + sb.append("class AddPhoneTemplateRequest {\n"); |
| 222 | + |
| 223 | + sb.append(" aospVersion: ").append(toIndentedString(aospVersion)).append("\n"); |
| 224 | + sb.append(" overlayPersistProperty: ").append(toIndentedString(overlayPersistProperty)).append("\n"); |
| 225 | + sb.append(" overlayProperty: ").append(toIndentedString(overlayProperty)).append("\n"); |
| 226 | + sb.append(" overlaySettings: ").append(toIndentedString(overlaySettings)).append("\n"); |
| 227 | + sb.append(" phoneTemplateName: ").append(toIndentedString(phoneTemplateName)).append("\n"); |
| 228 | + sb.append(" status: ").append(toIndentedString(status)).append("\n"); |
| 229 | + sb.append("}"); |
| 230 | + return sb.toString(); |
| 231 | + } |
| 232 | + |
| 233 | + /** |
| 234 | + * Convert the given object to string with each line indented by 4 spaces |
| 235 | + * (except the first line). |
| 236 | + */ |
| 237 | + private String toIndentedString(java.lang.Object o) { |
| 238 | + if (o == null) { |
| 239 | + return "null"; |
| 240 | + } |
| 241 | + return o.toString().replace("\n", "\n "); |
| 242 | + } |
| 243 | + |
| 244 | +} |
0 commit comments