|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | + * you may not use this file except in compliance with the License. |
| 4 | + * You may obtain a copy of the License at |
| 5 | + * |
| 6 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | + * |
| 8 | + * Unless required by applicable law or agreed to in writing, software |
| 9 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | + * See the License for the specific language governing permissions and |
| 12 | + * limitations under the License. |
| 13 | + */ |
| 14 | + |
| 15 | +package com.aliyuncs.r_kvstore.model.v20150101; |
| 16 | + |
| 17 | +import com.aliyuncs.RpcAcsRequest; |
| 18 | +import java.util.List; |
| 19 | +import com.aliyuncs.http.ProtocolType; |
| 20 | +import com.aliyuncs.http.MethodType; |
| 21 | +import com.aliyuncs.r_kvstore.Endpoint; |
| 22 | + |
| 23 | +/** |
| 24 | + * @author auto create |
| 25 | + * @version |
| 26 | + */ |
| 27 | +public class CreateTairKVCacheVNodeRequest extends RpcAcsRequest<CreateTairKVCacheVNodeResponse> { |
| 28 | + |
| 29 | + |
| 30 | + private Long resourceOwnerId; |
| 31 | + |
| 32 | + private String clientToken; |
| 33 | + |
| 34 | + private String couponNo; |
| 35 | + |
| 36 | + private Boolean autoUseCoupon; |
| 37 | + |
| 38 | + private String instanceClass; |
| 39 | + |
| 40 | + private String resourceGroupId; |
| 41 | + |
| 42 | + private String securityToken; |
| 43 | + |
| 44 | + private List<Tag> tags; |
| 45 | + |
| 46 | + private String businessInfo; |
| 47 | + |
| 48 | + private String autoRenewPeriod; |
| 49 | + |
| 50 | + private Integer period; |
| 51 | + |
| 52 | + private Boolean autoPay; |
| 53 | + |
| 54 | + private Boolean dryRun; |
| 55 | + |
| 56 | + private String resourceOwnerAccount; |
| 57 | + |
| 58 | + private String ownerAccount; |
| 59 | + |
| 60 | + private Long ownerId; |
| 61 | + |
| 62 | + private String vSwitchId; |
| 63 | + |
| 64 | + private String instanceName; |
| 65 | + |
| 66 | + private String vkName; |
| 67 | + |
| 68 | + private Boolean autoRenew; |
| 69 | + |
| 70 | + private Integer computeUnitNum; |
| 71 | + |
| 72 | + private String zoneId; |
| 73 | + |
| 74 | + private String chargeType; |
| 75 | + public CreateTairKVCacheVNodeRequest() { |
| 76 | + super("R-kvstore", "2015-01-01", "CreateTairKVCacheVNode", "redisa"); |
| 77 | + setProtocol(ProtocolType.HTTPS); |
| 78 | + setMethod(MethodType.POST); |
| 79 | + try { |
| 80 | + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); |
| 81 | + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); |
| 82 | + } catch (Exception e) {} |
| 83 | + } |
| 84 | + |
| 85 | + public Long getResourceOwnerId() { |
| 86 | + return this.resourceOwnerId; |
| 87 | + } |
| 88 | + |
| 89 | + public void setResourceOwnerId(Long resourceOwnerId) { |
| 90 | + this.resourceOwnerId = resourceOwnerId; |
| 91 | + if(resourceOwnerId != null){ |
| 92 | + putQueryParameter("ResourceOwnerId", resourceOwnerId.toString()); |
| 93 | + } |
| 94 | + } |
| 95 | + |
| 96 | + public String getClientToken() { |
| 97 | + return this.clientToken; |
| 98 | + } |
| 99 | + |
| 100 | + public void setClientToken(String clientToken) { |
| 101 | + this.clientToken = clientToken; |
| 102 | + if(clientToken != null){ |
| 103 | + putQueryParameter("ClientToken", clientToken); |
| 104 | + } |
| 105 | + } |
| 106 | + |
| 107 | + public String getCouponNo() { |
| 108 | + return this.couponNo; |
| 109 | + } |
| 110 | + |
| 111 | + public void setCouponNo(String couponNo) { |
| 112 | + this.couponNo = couponNo; |
| 113 | + if(couponNo != null){ |
| 114 | + putQueryParameter("CouponNo", couponNo); |
| 115 | + } |
| 116 | + } |
| 117 | + |
| 118 | + public Boolean getAutoUseCoupon() { |
| 119 | + return this.autoUseCoupon; |
| 120 | + } |
| 121 | + |
| 122 | + public void setAutoUseCoupon(Boolean autoUseCoupon) { |
| 123 | + this.autoUseCoupon = autoUseCoupon; |
| 124 | + if(autoUseCoupon != null){ |
| 125 | + putQueryParameter("AutoUseCoupon", autoUseCoupon.toString()); |
| 126 | + } |
| 127 | + } |
| 128 | + |
| 129 | + public String getInstanceClass() { |
| 130 | + return this.instanceClass; |
| 131 | + } |
| 132 | + |
| 133 | + public void setInstanceClass(String instanceClass) { |
| 134 | + this.instanceClass = instanceClass; |
| 135 | + if(instanceClass != null){ |
| 136 | + putQueryParameter("InstanceClass", instanceClass); |
| 137 | + } |
| 138 | + } |
| 139 | + |
| 140 | + public String getResourceGroupId() { |
| 141 | + return this.resourceGroupId; |
| 142 | + } |
| 143 | + |
| 144 | + public void setResourceGroupId(String resourceGroupId) { |
| 145 | + this.resourceGroupId = resourceGroupId; |
| 146 | + if(resourceGroupId != null){ |
| 147 | + putQueryParameter("ResourceGroupId", resourceGroupId); |
| 148 | + } |
| 149 | + } |
| 150 | + |
| 151 | + public String getSecurityToken() { |
| 152 | + return this.securityToken; |
| 153 | + } |
| 154 | + |
| 155 | + public void setSecurityToken(String securityToken) { |
| 156 | + this.securityToken = securityToken; |
| 157 | + if(securityToken != null){ |
| 158 | + putQueryParameter("SecurityToken", securityToken); |
| 159 | + } |
| 160 | + } |
| 161 | + |
| 162 | + public List<Tag> getTags() { |
| 163 | + return this.tags; |
| 164 | + } |
| 165 | + |
| 166 | + public void setTags(List<Tag> tags) { |
| 167 | + this.tags = tags; |
| 168 | + if (tags != null) { |
| 169 | + for (int depth1 = 0; depth1 < tags.size(); depth1++) { |
| 170 | + putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue()); |
| 171 | + putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey()); |
| 172 | + } |
| 173 | + } |
| 174 | + } |
| 175 | + |
| 176 | + public String getBusinessInfo() { |
| 177 | + return this.businessInfo; |
| 178 | + } |
| 179 | + |
| 180 | + public void setBusinessInfo(String businessInfo) { |
| 181 | + this.businessInfo = businessInfo; |
| 182 | + if(businessInfo != null){ |
| 183 | + putQueryParameter("BusinessInfo", businessInfo); |
| 184 | + } |
| 185 | + } |
| 186 | + |
| 187 | + public String getAutoRenewPeriod() { |
| 188 | + return this.autoRenewPeriod; |
| 189 | + } |
| 190 | + |
| 191 | + public void setAutoRenewPeriod(String autoRenewPeriod) { |
| 192 | + this.autoRenewPeriod = autoRenewPeriod; |
| 193 | + if(autoRenewPeriod != null){ |
| 194 | + putQueryParameter("AutoRenewPeriod", autoRenewPeriod); |
| 195 | + } |
| 196 | + } |
| 197 | + |
| 198 | + public Integer getPeriod() { |
| 199 | + return this.period; |
| 200 | + } |
| 201 | + |
| 202 | + public void setPeriod(Integer period) { |
| 203 | + this.period = period; |
| 204 | + if(period != null){ |
| 205 | + putQueryParameter("Period", period.toString()); |
| 206 | + } |
| 207 | + } |
| 208 | + |
| 209 | + public Boolean getAutoPay() { |
| 210 | + return this.autoPay; |
| 211 | + } |
| 212 | + |
| 213 | + public void setAutoPay(Boolean autoPay) { |
| 214 | + this.autoPay = autoPay; |
| 215 | + if(autoPay != null){ |
| 216 | + putQueryParameter("AutoPay", autoPay.toString()); |
| 217 | + } |
| 218 | + } |
| 219 | + |
| 220 | + public Boolean getDryRun() { |
| 221 | + return this.dryRun; |
| 222 | + } |
| 223 | + |
| 224 | + public void setDryRun(Boolean dryRun) { |
| 225 | + this.dryRun = dryRun; |
| 226 | + if(dryRun != null){ |
| 227 | + putQueryParameter("DryRun", dryRun.toString()); |
| 228 | + } |
| 229 | + } |
| 230 | + |
| 231 | + public String getResourceOwnerAccount() { |
| 232 | + return this.resourceOwnerAccount; |
| 233 | + } |
| 234 | + |
| 235 | + public void setResourceOwnerAccount(String resourceOwnerAccount) { |
| 236 | + this.resourceOwnerAccount = resourceOwnerAccount; |
| 237 | + if(resourceOwnerAccount != null){ |
| 238 | + putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); |
| 239 | + } |
| 240 | + } |
| 241 | + |
| 242 | + public String getOwnerAccount() { |
| 243 | + return this.ownerAccount; |
| 244 | + } |
| 245 | + |
| 246 | + public void setOwnerAccount(String ownerAccount) { |
| 247 | + this.ownerAccount = ownerAccount; |
| 248 | + if(ownerAccount != null){ |
| 249 | + putQueryParameter("OwnerAccount", ownerAccount); |
| 250 | + } |
| 251 | + } |
| 252 | + |
| 253 | + public Long getOwnerId() { |
| 254 | + return this.ownerId; |
| 255 | + } |
| 256 | + |
| 257 | + public void setOwnerId(Long ownerId) { |
| 258 | + this.ownerId = ownerId; |
| 259 | + if(ownerId != null){ |
| 260 | + putQueryParameter("OwnerId", ownerId.toString()); |
| 261 | + } |
| 262 | + } |
| 263 | + |
| 264 | + public String getVSwitchId() { |
| 265 | + return this.vSwitchId; |
| 266 | + } |
| 267 | + |
| 268 | + public void setVSwitchId(String vSwitchId) { |
| 269 | + this.vSwitchId = vSwitchId; |
| 270 | + if(vSwitchId != null){ |
| 271 | + putQueryParameter("VSwitchId", vSwitchId); |
| 272 | + } |
| 273 | + } |
| 274 | + |
| 275 | + public String getInstanceName() { |
| 276 | + return this.instanceName; |
| 277 | + } |
| 278 | + |
| 279 | + public void setInstanceName(String instanceName) { |
| 280 | + this.instanceName = instanceName; |
| 281 | + if(instanceName != null){ |
| 282 | + putQueryParameter("InstanceName", instanceName); |
| 283 | + } |
| 284 | + } |
| 285 | + |
| 286 | + public String getVkName() { |
| 287 | + return this.vkName; |
| 288 | + } |
| 289 | + |
| 290 | + public void setVkName(String vkName) { |
| 291 | + this.vkName = vkName; |
| 292 | + if(vkName != null){ |
| 293 | + putQueryParameter("VkName", vkName); |
| 294 | + } |
| 295 | + } |
| 296 | + |
| 297 | + public Boolean getAutoRenew() { |
| 298 | + return this.autoRenew; |
| 299 | + } |
| 300 | + |
| 301 | + public void setAutoRenew(Boolean autoRenew) { |
| 302 | + this.autoRenew = autoRenew; |
| 303 | + if(autoRenew != null){ |
| 304 | + putQueryParameter("AutoRenew", autoRenew.toString()); |
| 305 | + } |
| 306 | + } |
| 307 | + |
| 308 | + public Integer getComputeUnitNum() { |
| 309 | + return this.computeUnitNum; |
| 310 | + } |
| 311 | + |
| 312 | + public void setComputeUnitNum(Integer computeUnitNum) { |
| 313 | + this.computeUnitNum = computeUnitNum; |
| 314 | + if(computeUnitNum != null){ |
| 315 | + putQueryParameter("ComputeUnitNum", computeUnitNum.toString()); |
| 316 | + } |
| 317 | + } |
| 318 | + |
| 319 | + public String getZoneId() { |
| 320 | + return this.zoneId; |
| 321 | + } |
| 322 | + |
| 323 | + public void setZoneId(String zoneId) { |
| 324 | + this.zoneId = zoneId; |
| 325 | + if(zoneId != null){ |
| 326 | + putQueryParameter("ZoneId", zoneId); |
| 327 | + } |
| 328 | + } |
| 329 | + |
| 330 | + public String getChargeType() { |
| 331 | + return this.chargeType; |
| 332 | + } |
| 333 | + |
| 334 | + public void setChargeType(String chargeType) { |
| 335 | + this.chargeType = chargeType; |
| 336 | + if(chargeType != null){ |
| 337 | + putQueryParameter("ChargeType", chargeType); |
| 338 | + } |
| 339 | + } |
| 340 | + |
| 341 | + public static class Tag { |
| 342 | + |
| 343 | + private String value; |
| 344 | + |
| 345 | + private String key; |
| 346 | + |
| 347 | + public String getValue() { |
| 348 | + return this.value; |
| 349 | + } |
| 350 | + |
| 351 | + public void setValue(String value) { |
| 352 | + this.value = value; |
| 353 | + } |
| 354 | + |
| 355 | + public String getKey() { |
| 356 | + return this.key; |
| 357 | + } |
| 358 | + |
| 359 | + public void setKey(String key) { |
| 360 | + this.key = key; |
| 361 | + } |
| 362 | + } |
| 363 | + |
| 364 | + @Override |
| 365 | + public Class<CreateTairKVCacheVNodeResponse> getResponseClass() { |
| 366 | + return CreateTairKVCacheVNodeResponse.class; |
| 367 | + } |
| 368 | + |
| 369 | +} |
0 commit comments