|
| 1 | +// This file is auto-generated, don't edit it. Thanks. |
| 2 | +package com.aliyun.sdk.service.aliding20230426.models; |
| 3 | + |
| 4 | +import com.aliyun.sdk.gateway.pop.*; |
| 5 | +import darabonba.core.*; |
| 6 | +import darabonba.core.async.*; |
| 7 | +import darabonba.core.sync.*; |
| 8 | +import darabonba.core.client.*; |
| 9 | +import darabonba.core.RequestModel; |
| 10 | +import darabonba.core.TeaModel; |
| 11 | +import com.aliyun.sdk.gateway.pop.models.*; |
| 12 | + |
| 13 | +/** |
| 14 | + * |
| 15 | + * {@link UpdateConvExtensionRequest} extends {@link RequestModel} |
| 16 | + * |
| 17 | + * <p>UpdateConvExtensionRequest</p> |
| 18 | + */ |
| 19 | +public class UpdateConvExtensionRequest extends Request { |
| 20 | + @com.aliyun.core.annotation.Header |
| 21 | + @com.aliyun.core.annotation.NameInMap("AccountContext") |
| 22 | + private AccountContext accountContext; |
| 23 | + |
| 24 | + @com.aliyun.core.annotation.Body |
| 25 | + @com.aliyun.core.annotation.NameInMap("MobileUrl") |
| 26 | + private String mobileUrl; |
| 27 | + |
| 28 | + @com.aliyun.core.annotation.Body |
| 29 | + @com.aliyun.core.annotation.NameInMap("PcUrl") |
| 30 | + private String pcUrl; |
| 31 | + |
| 32 | + @com.aliyun.core.annotation.Body |
| 33 | + @com.aliyun.core.annotation.NameInMap("StaffIdList") |
| 34 | + private java.util.List<String> staffIdList; |
| 35 | + |
| 36 | + @com.aliyun.core.annotation.Body |
| 37 | + @com.aliyun.core.annotation.NameInMap("SystemUid") |
| 38 | + private String systemUid; |
| 39 | + |
| 40 | + @com.aliyun.core.annotation.Body |
| 41 | + @com.aliyun.core.annotation.NameInMap("TenantContext") |
| 42 | + private TenantContext tenantContext; |
| 43 | + |
| 44 | + private UpdateConvExtensionRequest(Builder builder) { |
| 45 | + super(builder); |
| 46 | + this.accountContext = builder.accountContext; |
| 47 | + this.mobileUrl = builder.mobileUrl; |
| 48 | + this.pcUrl = builder.pcUrl; |
| 49 | + this.staffIdList = builder.staffIdList; |
| 50 | + this.systemUid = builder.systemUid; |
| 51 | + this.tenantContext = builder.tenantContext; |
| 52 | + } |
| 53 | + |
| 54 | + public static Builder builder() { |
| 55 | + return new Builder(); |
| 56 | + } |
| 57 | + |
| 58 | + public static UpdateConvExtensionRequest create() { |
| 59 | + return builder().build(); |
| 60 | + } |
| 61 | + |
| 62 | +@Override |
| 63 | + public Builder toBuilder() { |
| 64 | + return new Builder(this); |
| 65 | + } |
| 66 | + |
| 67 | + /** |
| 68 | + * @return accountContext |
| 69 | + */ |
| 70 | + public AccountContext getAccountContext() { |
| 71 | + return this.accountContext; |
| 72 | + } |
| 73 | + |
| 74 | + /** |
| 75 | + * @return mobileUrl |
| 76 | + */ |
| 77 | + public String getMobileUrl() { |
| 78 | + return this.mobileUrl; |
| 79 | + } |
| 80 | + |
| 81 | + /** |
| 82 | + * @return pcUrl |
| 83 | + */ |
| 84 | + public String getPcUrl() { |
| 85 | + return this.pcUrl; |
| 86 | + } |
| 87 | + |
| 88 | + /** |
| 89 | + * @return staffIdList |
| 90 | + */ |
| 91 | + public java.util.List<String> getStaffIdList() { |
| 92 | + return this.staffIdList; |
| 93 | + } |
| 94 | + |
| 95 | + /** |
| 96 | + * @return systemUid |
| 97 | + */ |
| 98 | + public String getSystemUid() { |
| 99 | + return this.systemUid; |
| 100 | + } |
| 101 | + |
| 102 | + /** |
| 103 | + * @return tenantContext |
| 104 | + */ |
| 105 | + public TenantContext getTenantContext() { |
| 106 | + return this.tenantContext; |
| 107 | + } |
| 108 | + |
| 109 | + public static final class Builder extends Request.Builder<UpdateConvExtensionRequest, Builder> { |
| 110 | + private AccountContext accountContext; |
| 111 | + private String mobileUrl; |
| 112 | + private String pcUrl; |
| 113 | + private java.util.List<String> staffIdList; |
| 114 | + private String systemUid; |
| 115 | + private TenantContext tenantContext; |
| 116 | + |
| 117 | + private Builder() { |
| 118 | + super(); |
| 119 | + } |
| 120 | + |
| 121 | + private Builder(UpdateConvExtensionRequest request) { |
| 122 | + super(request); |
| 123 | + this.accountContext = request.accountContext; |
| 124 | + this.mobileUrl = request.mobileUrl; |
| 125 | + this.pcUrl = request.pcUrl; |
| 126 | + this.staffIdList = request.staffIdList; |
| 127 | + this.systemUid = request.systemUid; |
| 128 | + this.tenantContext = request.tenantContext; |
| 129 | + } |
| 130 | + |
| 131 | + /** |
| 132 | + * AccountContext. |
| 133 | + */ |
| 134 | + public Builder accountContext(AccountContext accountContext) { |
| 135 | + String accountContextShrink = shrink(accountContext, "AccountContext", "json"); |
| 136 | + this.putHeaderParameter("AccountContext", accountContextShrink); |
| 137 | + this.accountContext = accountContext; |
| 138 | + return this; |
| 139 | + } |
| 140 | + |
| 141 | + /** |
| 142 | + * MobileUrl. |
| 143 | + */ |
| 144 | + public Builder mobileUrl(String mobileUrl) { |
| 145 | + this.putBodyParameter("MobileUrl", mobileUrl); |
| 146 | + this.mobileUrl = mobileUrl; |
| 147 | + return this; |
| 148 | + } |
| 149 | + |
| 150 | + /** |
| 151 | + * PcUrl. |
| 152 | + */ |
| 153 | + public Builder pcUrl(String pcUrl) { |
| 154 | + this.putBodyParameter("PcUrl", pcUrl); |
| 155 | + this.pcUrl = pcUrl; |
| 156 | + return this; |
| 157 | + } |
| 158 | + |
| 159 | + /** |
| 160 | + * StaffIdList. |
| 161 | + */ |
| 162 | + public Builder staffIdList(java.util.List<String> staffIdList) { |
| 163 | + String staffIdListShrink = shrink(staffIdList, "StaffIdList", "json"); |
| 164 | + this.putBodyParameter("StaffIdList", staffIdListShrink); |
| 165 | + this.staffIdList = staffIdList; |
| 166 | + return this; |
| 167 | + } |
| 168 | + |
| 169 | + /** |
| 170 | + * SystemUid. |
| 171 | + */ |
| 172 | + public Builder systemUid(String systemUid) { |
| 173 | + this.putBodyParameter("SystemUid", systemUid); |
| 174 | + this.systemUid = systemUid; |
| 175 | + return this; |
| 176 | + } |
| 177 | + |
| 178 | + /** |
| 179 | + * TenantContext. |
| 180 | + */ |
| 181 | + public Builder tenantContext(TenantContext tenantContext) { |
| 182 | + String tenantContextShrink = shrink(tenantContext, "TenantContext", "json"); |
| 183 | + this.putBodyParameter("TenantContext", tenantContextShrink); |
| 184 | + this.tenantContext = tenantContext; |
| 185 | + return this; |
| 186 | + } |
| 187 | + |
| 188 | + @Override |
| 189 | + public UpdateConvExtensionRequest build() { |
| 190 | + return new UpdateConvExtensionRequest(this); |
| 191 | + } |
| 192 | + |
| 193 | + } |
| 194 | + |
| 195 | + /** |
| 196 | + * |
| 197 | + * {@link UpdateConvExtensionRequest} extends {@link TeaModel} |
| 198 | + * |
| 199 | + * <p>UpdateConvExtensionRequest</p> |
| 200 | + */ |
| 201 | + public static class AccountContext extends TeaModel { |
| 202 | + @com.aliyun.core.annotation.NameInMap("accountId") |
| 203 | + @com.aliyun.core.annotation.Validation(required = true) |
| 204 | + private String accountId; |
| 205 | + |
| 206 | + private AccountContext(Builder builder) { |
| 207 | + this.accountId = builder.accountId; |
| 208 | + } |
| 209 | + |
| 210 | + public static Builder builder() { |
| 211 | + return new Builder(); |
| 212 | + } |
| 213 | + |
| 214 | + public static AccountContext create() { |
| 215 | + return builder().build(); |
| 216 | + } |
| 217 | + |
| 218 | + /** |
| 219 | + * @return accountId |
| 220 | + */ |
| 221 | + public String getAccountId() { |
| 222 | + return this.accountId; |
| 223 | + } |
| 224 | + |
| 225 | + public static final class Builder { |
| 226 | + private String accountId; |
| 227 | + |
| 228 | + private Builder() { |
| 229 | + } |
| 230 | + |
| 231 | + private Builder(AccountContext model) { |
| 232 | + this.accountId = model.accountId; |
| 233 | + } |
| 234 | + |
| 235 | + /** |
| 236 | + * <p>This parameter is required.</p> |
| 237 | + * |
| 238 | + * <strong>example:</strong> |
| 239 | + * <p>012345</p> |
| 240 | + */ |
| 241 | + public Builder accountId(String accountId) { |
| 242 | + this.accountId = accountId; |
| 243 | + return this; |
| 244 | + } |
| 245 | + |
| 246 | + public AccountContext build() { |
| 247 | + return new AccountContext(this); |
| 248 | + } |
| 249 | + |
| 250 | + } |
| 251 | + |
| 252 | + } |
| 253 | + /** |
| 254 | + * |
| 255 | + * {@link UpdateConvExtensionRequest} extends {@link TeaModel} |
| 256 | + * |
| 257 | + * <p>UpdateConvExtensionRequest</p> |
| 258 | + */ |
| 259 | + public static class TenantContext extends TeaModel { |
| 260 | + @com.aliyun.core.annotation.NameInMap("tenantId") |
| 261 | + private String tenantId; |
| 262 | + |
| 263 | + private TenantContext(Builder builder) { |
| 264 | + this.tenantId = builder.tenantId; |
| 265 | + } |
| 266 | + |
| 267 | + public static Builder builder() { |
| 268 | + return new Builder(); |
| 269 | + } |
| 270 | + |
| 271 | + public static TenantContext create() { |
| 272 | + return builder().build(); |
| 273 | + } |
| 274 | + |
| 275 | + /** |
| 276 | + * @return tenantId |
| 277 | + */ |
| 278 | + public String getTenantId() { |
| 279 | + return this.tenantId; |
| 280 | + } |
| 281 | + |
| 282 | + public static final class Builder { |
| 283 | + private String tenantId; |
| 284 | + |
| 285 | + private Builder() { |
| 286 | + } |
| 287 | + |
| 288 | + private Builder(TenantContext model) { |
| 289 | + this.tenantId = model.tenantId; |
| 290 | + } |
| 291 | + |
| 292 | + /** |
| 293 | + * tenantId. |
| 294 | + */ |
| 295 | + public Builder tenantId(String tenantId) { |
| 296 | + this.tenantId = tenantId; |
| 297 | + return this; |
| 298 | + } |
| 299 | + |
| 300 | + public TenantContext build() { |
| 301 | + return new TenantContext(this); |
| 302 | + } |
| 303 | + |
| 304 | + } |
| 305 | + |
| 306 | + } |
| 307 | +} |
0 commit comments