All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.ecs20140526.models.ImportImageRequest Maven / Gradle / Ivy

There is a newer version: 7.0.8
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;

import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link ImportImageRequest} extends {@link RequestModel}
 *
 * 

ImportImageRequest

*/ public class ImportImageRequest extends Request { @Host @NameInMap("SourceRegionId") private String sourceRegionId; @Query @NameInMap("Architecture") private String architecture; @Query @NameInMap("BootMode") private String bootMode; @Query @NameInMap("Description") private String description; @Query @NameInMap("DetectionStrategy") private String detectionStrategy; @Query @NameInMap("DiskDeviceMapping") private java.util.List < DiskDeviceMapping> diskDeviceMapping; @Query @NameInMap("ImageName") private String imageName; @Query @NameInMap("LicenseType") private String licenseType; @Query @NameInMap("OSType") private String OSType; @Query @NameInMap("OwnerId") private Long ownerId; @Query @NameInMap("Platform") private String platform; @Query @NameInMap("RegionId") @Validation(required = true) private String regionId; @Query @NameInMap("ResourceGroupId") private String resourceGroupId; @Query @NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @Query @NameInMap("ResourceOwnerId") private Long resourceOwnerId; @Query @NameInMap("RoleName") private String roleName; @Query @NameInMap("Tag") private java.util.List < Tag> tag; private ImportImageRequest(Builder builder) { super(builder); this.sourceRegionId = builder.sourceRegionId; this.architecture = builder.architecture; this.bootMode = builder.bootMode; this.description = builder.description; this.detectionStrategy = builder.detectionStrategy; this.diskDeviceMapping = builder.diskDeviceMapping; this.imageName = builder.imageName; this.licenseType = builder.licenseType; this.OSType = builder.OSType; this.ownerId = builder.ownerId; this.platform = builder.platform; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.roleName = builder.roleName; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static ImportImageRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return sourceRegionId */ public String getSourceRegionId() { return this.sourceRegionId; } /** * @return architecture */ public String getArchitecture() { return this.architecture; } /** * @return bootMode */ public String getBootMode() { return this.bootMode; } /** * @return description */ public String getDescription() { return this.description; } /** * @return detectionStrategy */ public String getDetectionStrategy() { return this.detectionStrategy; } /** * @return diskDeviceMapping */ public java.util.List < DiskDeviceMapping> getDiskDeviceMapping() { return this.diskDeviceMapping; } /** * @return imageName */ public String getImageName() { return this.imageName; } /** * @return licenseType */ public String getLicenseType() { return this.licenseType; } /** * @return OSType */ public String getOSType() { return this.OSType; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return platform */ public String getPlatform() { return this.platform; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return roleName */ public String getRoleName() { return this.roleName; } /** * @return tag */ public java.util.List < Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder { private String sourceRegionId; private String architecture; private String bootMode; private String description; private String detectionStrategy; private java.util.List < DiskDeviceMapping> diskDeviceMapping; private String imageName; private String licenseType; private String OSType; private Long ownerId; private String platform; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private String roleName; private java.util.List < Tag> tag; private Builder() { super(); } private Builder(ImportImageRequest request) { super(request); this.sourceRegionId = request.sourceRegionId; this.architecture = request.architecture; this.bootMode = request.bootMode; this.description = request.description; this.detectionStrategy = request.detectionStrategy; this.diskDeviceMapping = request.diskDeviceMapping; this.imageName = request.imageName; this.licenseType = request.licenseType; this.OSType = request.OSType; this.ownerId = request.ownerId; this.platform = request.platform; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.roleName = request.roleName; this.tag = request.tag; } /** * SourceRegionId. */ public Builder sourceRegionId(String sourceRegionId) { this.putHostParameter("SourceRegionId", sourceRegionId); this.sourceRegionId = sourceRegionId; return this; } /** * Architecture. */ public Builder architecture(String architecture) { this.putQueryParameter("Architecture", architecture); this.architecture = architecture; return this; } /** * BootMode. */ public Builder bootMode(String bootMode) { this.putQueryParameter("BootMode", bootMode); this.bootMode = bootMode; return this; } /** * Description. */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * DetectionStrategy. */ public Builder detectionStrategy(String detectionStrategy) { this.putQueryParameter("DetectionStrategy", detectionStrategy); this.detectionStrategy = detectionStrategy; return this; } /** * DiskDeviceMapping. */ public Builder diskDeviceMapping(java.util.List < DiskDeviceMapping> diskDeviceMapping) { this.putQueryParameter("DiskDeviceMapping", diskDeviceMapping); this.diskDeviceMapping = diskDeviceMapping; return this; } /** * ImageName. */ public Builder imageName(String imageName) { this.putQueryParameter("ImageName", imageName); this.imageName = imageName; return this; } /** * LicenseType. */ public Builder licenseType(String licenseType) { this.putQueryParameter("LicenseType", licenseType); this.licenseType = licenseType; return this; } /** * OSType. */ public Builder OSType(String OSType) { this.putQueryParameter("OSType", OSType); this.OSType = OSType; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * Platform. */ public Builder platform(String platform) { this.putQueryParameter("Platform", platform); this.platform = platform; return this; } /** * RegionId. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceGroupId. */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * RoleName. */ public Builder roleName(String roleName) { this.putQueryParameter("RoleName", roleName); this.roleName = roleName; return this; } /** * Tag. */ public Builder tag(java.util.List < Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public ImportImageRequest build() { return new ImportImageRequest(this); } } public static class DiskDeviceMapping extends TeaModel { @NameInMap("Device") private String device; @NameInMap("DiskImSize") private Integer diskImSize; @NameInMap("DiskImageSize") private Integer diskImageSize; @NameInMap("Format") private String format; @NameInMap("OSSBucket") private String OSSBucket; @NameInMap("OSSObject") private String OSSObject; private DiskDeviceMapping(Builder builder) { this.device = builder.device; this.diskImSize = builder.diskImSize; this.diskImageSize = builder.diskImageSize; this.format = builder.format; this.OSSBucket = builder.OSSBucket; this.OSSObject = builder.OSSObject; } public static Builder builder() { return new Builder(); } public static DiskDeviceMapping create() { return builder().build(); } /** * @return device */ public String getDevice() { return this.device; } /** * @return diskImSize */ public Integer getDiskImSize() { return this.diskImSize; } /** * @return diskImageSize */ public Integer getDiskImageSize() { return this.diskImageSize; } /** * @return format */ public String getFormat() { return this.format; } /** * @return OSSBucket */ public String getOSSBucket() { return this.OSSBucket; } /** * @return OSSObject */ public String getOSSObject() { return this.OSSObject; } public static final class Builder { private String device; private Integer diskImSize; private Integer diskImageSize; private String format; private String OSSBucket; private String OSSObject; /** * Device. */ public Builder device(String device) { this.device = device; return this; } /** * DiskImSize. */ public Builder diskImSize(Integer diskImSize) { this.diskImSize = diskImSize; return this; } /** * DiskImageSize. */ public Builder diskImageSize(Integer diskImageSize) { this.diskImageSize = diskImageSize; return this; } /** * Format. */ public Builder format(String format) { this.format = format; return this; } /** * OSSBucket. */ public Builder OSSBucket(String OSSBucket) { this.OSSBucket = OSSBucket; return this; } /** * OSSObject. */ public Builder OSSObject(String OSSObject) { this.OSSObject = OSSObject; return this; } public DiskDeviceMapping build() { return new DiskDeviceMapping(this); } } } public static class Tag extends TeaModel { @NameInMap("Key") private String key; @NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; /** * Key. */ public Builder key(String key) { this.key = key; return this; } /** * Value. */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy