|
| 1 | +// This file is auto-generated, don't edit it. Thanks. |
| 2 | +package com.aliyun.sdk.service.appstream_center20210901.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 CreateImageByInstanceRequest} extends {@link RequestModel} |
| 16 | + * |
| 17 | + * <p>CreateImageByInstanceRequest</p> |
| 18 | + */ |
| 19 | +public class CreateImageByInstanceRequest extends Request { |
| 20 | + @com.aliyun.core.annotation.Host |
| 21 | + @com.aliyun.core.annotation.NameInMap("RegionId") |
| 22 | + private String regionId; |
| 23 | + |
| 24 | + @com.aliyun.core.annotation.Body |
| 25 | + @com.aliyun.core.annotation.NameInMap("AutoCleanUserdata") |
| 26 | + private Boolean autoCleanUserdata; |
| 27 | + |
| 28 | + @com.aliyun.core.annotation.Body |
| 29 | + @com.aliyun.core.annotation.NameInMap("BizType") |
| 30 | + private Integer bizType; |
| 31 | + |
| 32 | + @com.aliyun.core.annotation.Body |
| 33 | + @com.aliyun.core.annotation.NameInMap("Description") |
| 34 | + private String description; |
| 35 | + |
| 36 | + @com.aliyun.core.annotation.Body |
| 37 | + @com.aliyun.core.annotation.NameInMap("DiskType") |
| 38 | + private String diskType; |
| 39 | + |
| 40 | + @com.aliyun.core.annotation.Body |
| 41 | + @com.aliyun.core.annotation.NameInMap("ImageName") |
| 42 | + private String imageName; |
| 43 | + |
| 44 | + @com.aliyun.core.annotation.Body |
| 45 | + @com.aliyun.core.annotation.NameInMap("InstanceId") |
| 46 | + private String instanceId; |
| 47 | + |
| 48 | + @com.aliyun.core.annotation.Body |
| 49 | + @com.aliyun.core.annotation.NameInMap("InstanceType") |
| 50 | + private String instanceType; |
| 51 | + |
| 52 | + @com.aliyun.core.annotation.Body |
| 53 | + @com.aliyun.core.annotation.NameInMap("ProductType") |
| 54 | + private String productType; |
| 55 | + |
| 56 | + @com.aliyun.core.annotation.Body |
| 57 | + @com.aliyun.core.annotation.NameInMap("SubInstanceId") |
| 58 | + private String subInstanceId; |
| 59 | + |
| 60 | + private CreateImageByInstanceRequest(Builder builder) { |
| 61 | + super(builder); |
| 62 | + this.regionId = builder.regionId; |
| 63 | + this.autoCleanUserdata = builder.autoCleanUserdata; |
| 64 | + this.bizType = builder.bizType; |
| 65 | + this.description = builder.description; |
| 66 | + this.diskType = builder.diskType; |
| 67 | + this.imageName = builder.imageName; |
| 68 | + this.instanceId = builder.instanceId; |
| 69 | + this.instanceType = builder.instanceType; |
| 70 | + this.productType = builder.productType; |
| 71 | + this.subInstanceId = builder.subInstanceId; |
| 72 | + } |
| 73 | + |
| 74 | + public static Builder builder() { |
| 75 | + return new Builder(); |
| 76 | + } |
| 77 | + |
| 78 | + public static CreateImageByInstanceRequest create() { |
| 79 | + return builder().build(); |
| 80 | + } |
| 81 | + |
| 82 | +@Override |
| 83 | + public Builder toBuilder() { |
| 84 | + return new Builder(this); |
| 85 | + } |
| 86 | + |
| 87 | + /** |
| 88 | + * @return regionId |
| 89 | + */ |
| 90 | + public String getRegionId() { |
| 91 | + return this.regionId; |
| 92 | + } |
| 93 | + |
| 94 | + /** |
| 95 | + * @return autoCleanUserdata |
| 96 | + */ |
| 97 | + public Boolean getAutoCleanUserdata() { |
| 98 | + return this.autoCleanUserdata; |
| 99 | + } |
| 100 | + |
| 101 | + /** |
| 102 | + * @return bizType |
| 103 | + */ |
| 104 | + public Integer getBizType() { |
| 105 | + return this.bizType; |
| 106 | + } |
| 107 | + |
| 108 | + /** |
| 109 | + * @return description |
| 110 | + */ |
| 111 | + public String getDescription() { |
| 112 | + return this.description; |
| 113 | + } |
| 114 | + |
| 115 | + /** |
| 116 | + * @return diskType |
| 117 | + */ |
| 118 | + public String getDiskType() { |
| 119 | + return this.diskType; |
| 120 | + } |
| 121 | + |
| 122 | + /** |
| 123 | + * @return imageName |
| 124 | + */ |
| 125 | + public String getImageName() { |
| 126 | + return this.imageName; |
| 127 | + } |
| 128 | + |
| 129 | + /** |
| 130 | + * @return instanceId |
| 131 | + */ |
| 132 | + public String getInstanceId() { |
| 133 | + return this.instanceId; |
| 134 | + } |
| 135 | + |
| 136 | + /** |
| 137 | + * @return instanceType |
| 138 | + */ |
| 139 | + public String getInstanceType() { |
| 140 | + return this.instanceType; |
| 141 | + } |
| 142 | + |
| 143 | + /** |
| 144 | + * @return productType |
| 145 | + */ |
| 146 | + public String getProductType() { |
| 147 | + return this.productType; |
| 148 | + } |
| 149 | + |
| 150 | + /** |
| 151 | + * @return subInstanceId |
| 152 | + */ |
| 153 | + public String getSubInstanceId() { |
| 154 | + return this.subInstanceId; |
| 155 | + } |
| 156 | + |
| 157 | + public static final class Builder extends Request.Builder<CreateImageByInstanceRequest, Builder> { |
| 158 | + private String regionId; |
| 159 | + private Boolean autoCleanUserdata; |
| 160 | + private Integer bizType; |
| 161 | + private String description; |
| 162 | + private String diskType; |
| 163 | + private String imageName; |
| 164 | + private String instanceId; |
| 165 | + private String instanceType; |
| 166 | + private String productType; |
| 167 | + private String subInstanceId; |
| 168 | + |
| 169 | + private Builder() { |
| 170 | + super(); |
| 171 | + } |
| 172 | + |
| 173 | + private Builder(CreateImageByInstanceRequest request) { |
| 174 | + super(request); |
| 175 | + this.regionId = request.regionId; |
| 176 | + this.autoCleanUserdata = request.autoCleanUserdata; |
| 177 | + this.bizType = request.bizType; |
| 178 | + this.description = request.description; |
| 179 | + this.diskType = request.diskType; |
| 180 | + this.imageName = request.imageName; |
| 181 | + this.instanceId = request.instanceId; |
| 182 | + this.instanceType = request.instanceType; |
| 183 | + this.productType = request.productType; |
| 184 | + this.subInstanceId = request.subInstanceId; |
| 185 | + } |
| 186 | + |
| 187 | + /** |
| 188 | + * RegionId. |
| 189 | + */ |
| 190 | + public Builder regionId(String regionId) { |
| 191 | + this.putHostParameter("RegionId", regionId); |
| 192 | + this.regionId = regionId; |
| 193 | + return this; |
| 194 | + } |
| 195 | + |
| 196 | + /** |
| 197 | + * AutoCleanUserdata. |
| 198 | + */ |
| 199 | + public Builder autoCleanUserdata(Boolean autoCleanUserdata) { |
| 200 | + this.putBodyParameter("AutoCleanUserdata", autoCleanUserdata); |
| 201 | + this.autoCleanUserdata = autoCleanUserdata; |
| 202 | + return this; |
| 203 | + } |
| 204 | + |
| 205 | + /** |
| 206 | + * BizType. |
| 207 | + */ |
| 208 | + public Builder bizType(Integer bizType) { |
| 209 | + this.putBodyParameter("BizType", bizType); |
| 210 | + this.bizType = bizType; |
| 211 | + return this; |
| 212 | + } |
| 213 | + |
| 214 | + /** |
| 215 | + * Description. |
| 216 | + */ |
| 217 | + public Builder description(String description) { |
| 218 | + this.putBodyParameter("Description", description); |
| 219 | + this.description = description; |
| 220 | + return this; |
| 221 | + } |
| 222 | + |
| 223 | + /** |
| 224 | + * DiskType. |
| 225 | + */ |
| 226 | + public Builder diskType(String diskType) { |
| 227 | + this.putBodyParameter("DiskType", diskType); |
| 228 | + this.diskType = diskType; |
| 229 | + return this; |
| 230 | + } |
| 231 | + |
| 232 | + /** |
| 233 | + * ImageName. |
| 234 | + */ |
| 235 | + public Builder imageName(String imageName) { |
| 236 | + this.putBodyParameter("ImageName", imageName); |
| 237 | + this.imageName = imageName; |
| 238 | + return this; |
| 239 | + } |
| 240 | + |
| 241 | + /** |
| 242 | + * InstanceId. |
| 243 | + */ |
| 244 | + public Builder instanceId(String instanceId) { |
| 245 | + this.putBodyParameter("InstanceId", instanceId); |
| 246 | + this.instanceId = instanceId; |
| 247 | + return this; |
| 248 | + } |
| 249 | + |
| 250 | + /** |
| 251 | + * InstanceType. |
| 252 | + */ |
| 253 | + public Builder instanceType(String instanceType) { |
| 254 | + this.putBodyParameter("InstanceType", instanceType); |
| 255 | + this.instanceType = instanceType; |
| 256 | + return this; |
| 257 | + } |
| 258 | + |
| 259 | + /** |
| 260 | + * ProductType. |
| 261 | + */ |
| 262 | + public Builder productType(String productType) { |
| 263 | + this.putBodyParameter("ProductType", productType); |
| 264 | + this.productType = productType; |
| 265 | + return this; |
| 266 | + } |
| 267 | + |
| 268 | + /** |
| 269 | + * SubInstanceId. |
| 270 | + */ |
| 271 | + public Builder subInstanceId(String subInstanceId) { |
| 272 | + this.putBodyParameter("SubInstanceId", subInstanceId); |
| 273 | + this.subInstanceId = subInstanceId; |
| 274 | + return this; |
| 275 | + } |
| 276 | + |
| 277 | + @Override |
| 278 | + public CreateImageByInstanceRequest build() { |
| 279 | + return new CreateImageByInstanceRequest(this); |
| 280 | + } |
| 281 | + |
| 282 | + } |
| 283 | + |
| 284 | +} |
0 commit comments