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

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

There is a newer version: 6.0.4
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 RunInstancesRequest} extends {@link RequestModel}
 *
 * 

RunInstancesRequest

*/ public class RunInstancesRequest extends Request { @Query @NameInMap("CpuOptions") private CpuOptions cpuOptions; @Query @NameInMap("HibernationOptions") private HibernationOptions hibernationOptions; @Query @NameInMap("PrivatePoolOptions") private PrivatePoolOptions privatePoolOptions; @Query @NameInMap("SchedulerOptions") private SchedulerOptions schedulerOptions; @Query @NameInMap("SecurityOptions") private SecurityOptions securityOptions; @Query @NameInMap("SystemDisk") private SystemDisk systemDisk; @Host @NameInMap("SourceRegionId") private String sourceRegionId; @Query @NameInMap("Affinity") private String affinity; @Query @NameInMap("Amount") @Validation(maximum = 1000, minimum = 1) private Integer amount; @Query @NameInMap("Arn") private java.util.List < Arn> arn; @Query @NameInMap("AutoReleaseTime") private String autoReleaseTime; @Query @NameInMap("AutoRenew") private Boolean autoRenew; @Query @NameInMap("AutoRenewPeriod") private Integer autoRenewPeriod; @Query @NameInMap("ClientToken") private String clientToken; @Query @NameInMap("CreditSpecification") private String creditSpecification; @Query @NameInMap("DataDisk") private java.util.List < DataDisk> dataDisk; @Query @NameInMap("DedicatedHostId") private String dedicatedHostId; @Query @NameInMap("DeletionProtection") private Boolean deletionProtection; @Query @NameInMap("DeploymentSetGroupNo") private Integer deploymentSetGroupNo; @Query @NameInMap("DeploymentSetId") private String deploymentSetId; @Query @NameInMap("Description") private String description; @Query @NameInMap("DryRun") private Boolean dryRun; @Query @NameInMap("HostName") private String hostName; @Query @NameInMap("HostNames") private java.util.List < String > hostNames; @Query @NameInMap("HpcClusterId") private String hpcClusterId; @Query @NameInMap("HttpEndpoint") private String httpEndpoint; @Query @NameInMap("HttpPutResponseHopLimit") private Integer httpPutResponseHopLimit; @Query @NameInMap("HttpTokens") private String httpTokens; @Query @NameInMap("ImageFamily") private String imageFamily; @Query @NameInMap("ImageId") private String imageId; @Query @NameInMap("InstanceChargeType") private String instanceChargeType; @Query @NameInMap("InstanceName") private String instanceName; @Query @NameInMap("InstanceType") private String instanceType; @Query @NameInMap("InternetChargeType") private String internetChargeType; @Query @NameInMap("InternetMaxBandwidthIn") private Integer internetMaxBandwidthIn; @Query @NameInMap("InternetMaxBandwidthOut") private Integer internetMaxBandwidthOut; @Query @NameInMap("IoOptimized") private String ioOptimized; @Query @NameInMap("Ipv6Address") private java.util.List < String > ipv6Address; @Query @NameInMap("Ipv6AddressCount") private Integer ipv6AddressCount; @Query @NameInMap("Isp") private String isp; @Query @NameInMap("KeyPairName") private String keyPairName; @Query @NameInMap("LaunchTemplateId") private String launchTemplateId; @Query @NameInMap("LaunchTemplateName") private String launchTemplateName; @Query @NameInMap("LaunchTemplateVersion") private Long launchTemplateVersion; @Query @NameInMap("MinAmount") @Validation(maximum = 100, minimum = 1) private Integer minAmount; @Query @NameInMap("NetworkInterface") private java.util.List < NetworkInterface> networkInterface; @Query @NameInMap("NetworkInterfaceQueueNumber") private Integer networkInterfaceQueueNumber; @Query @NameInMap("OwnerAccount") private String ownerAccount; @Query @NameInMap("OwnerId") private Long ownerId; @Query @NameInMap("Password") private String password; @Query @NameInMap("PasswordInherit") private Boolean passwordInherit; @Query @NameInMap("Period") private Integer period; @Query @NameInMap("PeriodUnit") private String periodUnit; @Query @NameInMap("PrivateIpAddress") private String privateIpAddress; @Query @NameInMap("RamRoleName") private String ramRoleName; @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("SecurityEnhancementStrategy") private String securityEnhancementStrategy; @Query @NameInMap("SecurityGroupId") private String securityGroupId; @Query @NameInMap("SecurityGroupIds") private java.util.List < String > securityGroupIds; @Query @NameInMap("SpotDuration") @Validation(maximum = 6) private Integer spotDuration; @Query @NameInMap("SpotInterruptionBehavior") private String spotInterruptionBehavior; @Query @NameInMap("SpotPriceLimit") @Validation(maximum = 999999) private Float spotPriceLimit; @Query @NameInMap("SpotStrategy") private String spotStrategy; @Query @NameInMap("StorageSetId") private String storageSetId; @Query @NameInMap("StorageSetPartitionNumber") private Integer storageSetPartitionNumber; @Query @NameInMap("Tag") private java.util.List < Tag> tag; @Query @NameInMap("Tenancy") private String tenancy; @Query @NameInMap("UniqueSuffix") private Boolean uniqueSuffix; @Query @NameInMap("UserData") private String userData; @Query @NameInMap("VSwitchId") private String vSwitchId; @Query @NameInMap("ZoneId") private String zoneId; private RunInstancesRequest(Builder builder) { super(builder); this.cpuOptions = builder.cpuOptions; this.hibernationOptions = builder.hibernationOptions; this.privatePoolOptions = builder.privatePoolOptions; this.schedulerOptions = builder.schedulerOptions; this.securityOptions = builder.securityOptions; this.systemDisk = builder.systemDisk; this.sourceRegionId = builder.sourceRegionId; this.affinity = builder.affinity; this.amount = builder.amount; this.arn = builder.arn; this.autoReleaseTime = builder.autoReleaseTime; this.autoRenew = builder.autoRenew; this.autoRenewPeriod = builder.autoRenewPeriod; this.clientToken = builder.clientToken; this.creditSpecification = builder.creditSpecification; this.dataDisk = builder.dataDisk; this.dedicatedHostId = builder.dedicatedHostId; this.deletionProtection = builder.deletionProtection; this.deploymentSetGroupNo = builder.deploymentSetGroupNo; this.deploymentSetId = builder.deploymentSetId; this.description = builder.description; this.dryRun = builder.dryRun; this.hostName = builder.hostName; this.hostNames = builder.hostNames; this.hpcClusterId = builder.hpcClusterId; this.httpEndpoint = builder.httpEndpoint; this.httpPutResponseHopLimit = builder.httpPutResponseHopLimit; this.httpTokens = builder.httpTokens; this.imageFamily = builder.imageFamily; this.imageId = builder.imageId; this.instanceChargeType = builder.instanceChargeType; this.instanceName = builder.instanceName; this.instanceType = builder.instanceType; this.internetChargeType = builder.internetChargeType; this.internetMaxBandwidthIn = builder.internetMaxBandwidthIn; this.internetMaxBandwidthOut = builder.internetMaxBandwidthOut; this.ioOptimized = builder.ioOptimized; this.ipv6Address = builder.ipv6Address; this.ipv6AddressCount = builder.ipv6AddressCount; this.isp = builder.isp; this.keyPairName = builder.keyPairName; this.launchTemplateId = builder.launchTemplateId; this.launchTemplateName = builder.launchTemplateName; this.launchTemplateVersion = builder.launchTemplateVersion; this.minAmount = builder.minAmount; this.networkInterface = builder.networkInterface; this.networkInterfaceQueueNumber = builder.networkInterfaceQueueNumber; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.password = builder.password; this.passwordInherit = builder.passwordInherit; this.period = builder.period; this.periodUnit = builder.periodUnit; this.privateIpAddress = builder.privateIpAddress; this.ramRoleName = builder.ramRoleName; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.securityEnhancementStrategy = builder.securityEnhancementStrategy; this.securityGroupId = builder.securityGroupId; this.securityGroupIds = builder.securityGroupIds; this.spotDuration = builder.spotDuration; this.spotInterruptionBehavior = builder.spotInterruptionBehavior; this.spotPriceLimit = builder.spotPriceLimit; this.spotStrategy = builder.spotStrategy; this.storageSetId = builder.storageSetId; this.storageSetPartitionNumber = builder.storageSetPartitionNumber; this.tag = builder.tag; this.tenancy = builder.tenancy; this.uniqueSuffix = builder.uniqueSuffix; this.userData = builder.userData; this.vSwitchId = builder.vSwitchId; this.zoneId = builder.zoneId; } public static Builder builder() { return new Builder(); } public static RunInstancesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return cpuOptions */ public CpuOptions getCpuOptions() { return this.cpuOptions; } /** * @return hibernationOptions */ public HibernationOptions getHibernationOptions() { return this.hibernationOptions; } /** * @return privatePoolOptions */ public PrivatePoolOptions getPrivatePoolOptions() { return this.privatePoolOptions; } /** * @return schedulerOptions */ public SchedulerOptions getSchedulerOptions() { return this.schedulerOptions; } /** * @return securityOptions */ public SecurityOptions getSecurityOptions() { return this.securityOptions; } /** * @return systemDisk */ public SystemDisk getSystemDisk() { return this.systemDisk; } /** * @return sourceRegionId */ public String getSourceRegionId() { return this.sourceRegionId; } /** * @return affinity */ public String getAffinity() { return this.affinity; } /** * @return amount */ public Integer getAmount() { return this.amount; } /** * @return arn */ public java.util.List < Arn> getArn() { return this.arn; } /** * @return autoReleaseTime */ public String getAutoReleaseTime() { return this.autoReleaseTime; } /** * @return autoRenew */ public Boolean getAutoRenew() { return this.autoRenew; } /** * @return autoRenewPeriod */ public Integer getAutoRenewPeriod() { return this.autoRenewPeriod; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return creditSpecification */ public String getCreditSpecification() { return this.creditSpecification; } /** * @return dataDisk */ public java.util.List < DataDisk> getDataDisk() { return this.dataDisk; } /** * @return dedicatedHostId */ public String getDedicatedHostId() { return this.dedicatedHostId; } /** * @return deletionProtection */ public Boolean getDeletionProtection() { return this.deletionProtection; } /** * @return deploymentSetGroupNo */ public Integer getDeploymentSetGroupNo() { return this.deploymentSetGroupNo; } /** * @return deploymentSetId */ public String getDeploymentSetId() { return this.deploymentSetId; } /** * @return description */ public String getDescription() { return this.description; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return hostName */ public String getHostName() { return this.hostName; } /** * @return hostNames */ public java.util.List < String > getHostNames() { return this.hostNames; } /** * @return hpcClusterId */ public String getHpcClusterId() { return this.hpcClusterId; } /** * @return httpEndpoint */ public String getHttpEndpoint() { return this.httpEndpoint; } /** * @return httpPutResponseHopLimit */ public Integer getHttpPutResponseHopLimit() { return this.httpPutResponseHopLimit; } /** * @return httpTokens */ public String getHttpTokens() { return this.httpTokens; } /** * @return imageFamily */ public String getImageFamily() { return this.imageFamily; } /** * @return imageId */ public String getImageId() { return this.imageId; } /** * @return instanceChargeType */ public String getInstanceChargeType() { return this.instanceChargeType; } /** * @return instanceName */ public String getInstanceName() { return this.instanceName; } /** * @return instanceType */ public String getInstanceType() { return this.instanceType; } /** * @return internetChargeType */ public String getInternetChargeType() { return this.internetChargeType; } /** * @return internetMaxBandwidthIn */ public Integer getInternetMaxBandwidthIn() { return this.internetMaxBandwidthIn; } /** * @return internetMaxBandwidthOut */ public Integer getInternetMaxBandwidthOut() { return this.internetMaxBandwidthOut; } /** * @return ioOptimized */ public String getIoOptimized() { return this.ioOptimized; } /** * @return ipv6Address */ public java.util.List < String > getIpv6Address() { return this.ipv6Address; } /** * @return ipv6AddressCount */ public Integer getIpv6AddressCount() { return this.ipv6AddressCount; } /** * @return isp */ public String getIsp() { return this.isp; } /** * @return keyPairName */ public String getKeyPairName() { return this.keyPairName; } /** * @return launchTemplateId */ public String getLaunchTemplateId() { return this.launchTemplateId; } /** * @return launchTemplateName */ public String getLaunchTemplateName() { return this.launchTemplateName; } /** * @return launchTemplateVersion */ public Long getLaunchTemplateVersion() { return this.launchTemplateVersion; } /** * @return minAmount */ public Integer getMinAmount() { return this.minAmount; } /** * @return networkInterface */ public java.util.List < NetworkInterface> getNetworkInterface() { return this.networkInterface; } /** * @return networkInterfaceQueueNumber */ public Integer getNetworkInterfaceQueueNumber() { return this.networkInterfaceQueueNumber; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return password */ public String getPassword() { return this.password; } /** * @return passwordInherit */ public Boolean getPasswordInherit() { return this.passwordInherit; } /** * @return period */ public Integer getPeriod() { return this.period; } /** * @return periodUnit */ public String getPeriodUnit() { return this.periodUnit; } /** * @return privateIpAddress */ public String getPrivateIpAddress() { return this.privateIpAddress; } /** * @return ramRoleName */ public String getRamRoleName() { return this.ramRoleName; } /** * @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 securityEnhancementStrategy */ public String getSecurityEnhancementStrategy() { return this.securityEnhancementStrategy; } /** * @return securityGroupId */ public String getSecurityGroupId() { return this.securityGroupId; } /** * @return securityGroupIds */ public java.util.List < String > getSecurityGroupIds() { return this.securityGroupIds; } /** * @return spotDuration */ public Integer getSpotDuration() { return this.spotDuration; } /** * @return spotInterruptionBehavior */ public String getSpotInterruptionBehavior() { return this.spotInterruptionBehavior; } /** * @return spotPriceLimit */ public Float getSpotPriceLimit() { return this.spotPriceLimit; } /** * @return spotStrategy */ public String getSpotStrategy() { return this.spotStrategy; } /** * @return storageSetId */ public String getStorageSetId() { return this.storageSetId; } /** * @return storageSetPartitionNumber */ public Integer getStorageSetPartitionNumber() { return this.storageSetPartitionNumber; } /** * @return tag */ public java.util.List < Tag> getTag() { return this.tag; } /** * @return tenancy */ public String getTenancy() { return this.tenancy; } /** * @return uniqueSuffix */ public Boolean getUniqueSuffix() { return this.uniqueSuffix; } /** * @return userData */ public String getUserData() { return this.userData; } /** * @return vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } /** * @return zoneId */ public String getZoneId() { return this.zoneId; } public static final class Builder extends Request.Builder { private CpuOptions cpuOptions; private HibernationOptions hibernationOptions; private PrivatePoolOptions privatePoolOptions; private SchedulerOptions schedulerOptions; private SecurityOptions securityOptions; private SystemDisk systemDisk; private String sourceRegionId; private String affinity; private Integer amount; private java.util.List < Arn> arn; private String autoReleaseTime; private Boolean autoRenew; private Integer autoRenewPeriod; private String clientToken; private String creditSpecification; private java.util.List < DataDisk> dataDisk; private String dedicatedHostId; private Boolean deletionProtection; private Integer deploymentSetGroupNo; private String deploymentSetId; private String description; private Boolean dryRun; private String hostName; private java.util.List < String > hostNames; private String hpcClusterId; private String httpEndpoint; private Integer httpPutResponseHopLimit; private String httpTokens; private String imageFamily; private String imageId; private String instanceChargeType; private String instanceName; private String instanceType; private String internetChargeType; private Integer internetMaxBandwidthIn; private Integer internetMaxBandwidthOut; private String ioOptimized; private java.util.List < String > ipv6Address; private Integer ipv6AddressCount; private String isp; private String keyPairName; private String launchTemplateId; private String launchTemplateName; private Long launchTemplateVersion; private Integer minAmount; private java.util.List < NetworkInterface> networkInterface; private Integer networkInterfaceQueueNumber; private String ownerAccount; private Long ownerId; private String password; private Boolean passwordInherit; private Integer period; private String periodUnit; private String privateIpAddress; private String ramRoleName; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private String securityEnhancementStrategy; private String securityGroupId; private java.util.List < String > securityGroupIds; private Integer spotDuration; private String spotInterruptionBehavior; private Float spotPriceLimit; private String spotStrategy; private String storageSetId; private Integer storageSetPartitionNumber; private java.util.List < Tag> tag; private String tenancy; private Boolean uniqueSuffix; private String userData; private String vSwitchId; private String zoneId; private Builder() { super(); } private Builder(RunInstancesRequest request) { super(request); this.cpuOptions = request.cpuOptions; this.hibernationOptions = request.hibernationOptions; this.privatePoolOptions = request.privatePoolOptions; this.schedulerOptions = request.schedulerOptions; this.securityOptions = request.securityOptions; this.systemDisk = request.systemDisk; this.sourceRegionId = request.sourceRegionId; this.affinity = request.affinity; this.amount = request.amount; this.arn = request.arn; this.autoReleaseTime = request.autoReleaseTime; this.autoRenew = request.autoRenew; this.autoRenewPeriod = request.autoRenewPeriod; this.clientToken = request.clientToken; this.creditSpecification = request.creditSpecification; this.dataDisk = request.dataDisk; this.dedicatedHostId = request.dedicatedHostId; this.deletionProtection = request.deletionProtection; this.deploymentSetGroupNo = request.deploymentSetGroupNo; this.deploymentSetId = request.deploymentSetId; this.description = request.description; this.dryRun = request.dryRun; this.hostName = request.hostName; this.hostNames = request.hostNames; this.hpcClusterId = request.hpcClusterId; this.httpEndpoint = request.httpEndpoint; this.httpPutResponseHopLimit = request.httpPutResponseHopLimit; this.httpTokens = request.httpTokens; this.imageFamily = request.imageFamily; this.imageId = request.imageId; this.instanceChargeType = request.instanceChargeType; this.instanceName = request.instanceName; this.instanceType = request.instanceType; this.internetChargeType = request.internetChargeType; this.internetMaxBandwidthIn = request.internetMaxBandwidthIn; this.internetMaxBandwidthOut = request.internetMaxBandwidthOut; this.ioOptimized = request.ioOptimized; this.ipv6Address = request.ipv6Address; this.ipv6AddressCount = request.ipv6AddressCount; this.isp = request.isp; this.keyPairName = request.keyPairName; this.launchTemplateId = request.launchTemplateId; this.launchTemplateName = request.launchTemplateName; this.launchTemplateVersion = request.launchTemplateVersion; this.minAmount = request.minAmount; this.networkInterface = request.networkInterface; this.networkInterfaceQueueNumber = request.networkInterfaceQueueNumber; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.password = request.password; this.passwordInherit = request.passwordInherit; this.period = request.period; this.periodUnit = request.periodUnit; this.privateIpAddress = request.privateIpAddress; this.ramRoleName = request.ramRoleName; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.securityEnhancementStrategy = request.securityEnhancementStrategy; this.securityGroupId = request.securityGroupId; this.securityGroupIds = request.securityGroupIds; this.spotDuration = request.spotDuration; this.spotInterruptionBehavior = request.spotInterruptionBehavior; this.spotPriceLimit = request.spotPriceLimit; this.spotStrategy = request.spotStrategy; this.storageSetId = request.storageSetId; this.storageSetPartitionNumber = request.storageSetPartitionNumber; this.tag = request.tag; this.tenancy = request.tenancy; this.uniqueSuffix = request.uniqueSuffix; this.userData = request.userData; this.vSwitchId = request.vSwitchId; this.zoneId = request.zoneId; } /** * CpuOptions. */ public Builder cpuOptions(CpuOptions cpuOptions) { this.putQueryParameter("CpuOptions", cpuOptions); this.cpuOptions = cpuOptions; return this; } /** * HibernationOptions. */ public Builder hibernationOptions(HibernationOptions hibernationOptions) { this.putQueryParameter("HibernationOptions", hibernationOptions); this.hibernationOptions = hibernationOptions; return this; } /** * PrivatePoolOptions. */ public Builder privatePoolOptions(PrivatePoolOptions privatePoolOptions) { this.putQueryParameter("PrivatePoolOptions", privatePoolOptions); this.privatePoolOptions = privatePoolOptions; return this; } /** * SchedulerOptions. */ public Builder schedulerOptions(SchedulerOptions schedulerOptions) { this.putQueryParameter("SchedulerOptions", schedulerOptions); this.schedulerOptions = schedulerOptions; return this; } /** * SecurityOptions. */ public Builder securityOptions(SecurityOptions securityOptions) { this.putQueryParameter("SecurityOptions", securityOptions); this.securityOptions = securityOptions; return this; } /** * SystemDisk. */ public Builder systemDisk(SystemDisk systemDisk) { this.putQueryParameter("SystemDisk", systemDisk); this.systemDisk = systemDisk; return this; } /** * SourceRegionId. */ public Builder sourceRegionId(String sourceRegionId) { this.putHostParameter("SourceRegionId", sourceRegionId); this.sourceRegionId = sourceRegionId; return this; } /** * Affinity. */ public Builder affinity(String affinity) { this.putQueryParameter("Affinity", affinity); this.affinity = affinity; return this; } /** * Amount. */ public Builder amount(Integer amount) { this.putQueryParameter("Amount", amount); this.amount = amount; return this; } /** * Arn. */ public Builder arn(java.util.List < Arn> arn) { this.putQueryParameter("Arn", arn); this.arn = arn; return this; } /** * AutoReleaseTime. */ public Builder autoReleaseTime(String autoReleaseTime) { this.putQueryParameter("AutoReleaseTime", autoReleaseTime); this.autoReleaseTime = autoReleaseTime; return this; } /** * AutoRenew. */ public Builder autoRenew(Boolean autoRenew) { this.putQueryParameter("AutoRenew", autoRenew); this.autoRenew = autoRenew; return this; } /** * AutoRenewPeriod. */ public Builder autoRenewPeriod(Integer autoRenewPeriod) { this.putQueryParameter("AutoRenewPeriod", autoRenewPeriod); this.autoRenewPeriod = autoRenewPeriod; return this; } /** * ClientToken. */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * CreditSpecification. */ public Builder creditSpecification(String creditSpecification) { this.putQueryParameter("CreditSpecification", creditSpecification); this.creditSpecification = creditSpecification; return this; } /** * DataDisk. */ public Builder dataDisk(java.util.List < DataDisk> dataDisk) { this.putQueryParameter("DataDisk", dataDisk); this.dataDisk = dataDisk; return this; } /** * DedicatedHostId. */ public Builder dedicatedHostId(String dedicatedHostId) { this.putQueryParameter("DedicatedHostId", dedicatedHostId); this.dedicatedHostId = dedicatedHostId; return this; } /** * DeletionProtection. */ public Builder deletionProtection(Boolean deletionProtection) { this.putQueryParameter("DeletionProtection", deletionProtection); this.deletionProtection = deletionProtection; return this; } /** * DeploymentSetGroupNo. */ public Builder deploymentSetGroupNo(Integer deploymentSetGroupNo) { this.putQueryParameter("DeploymentSetGroupNo", deploymentSetGroupNo); this.deploymentSetGroupNo = deploymentSetGroupNo; return this; } /** * DeploymentSetId. */ public Builder deploymentSetId(String deploymentSetId) { this.putQueryParameter("DeploymentSetId", deploymentSetId); this.deploymentSetId = deploymentSetId; return this; } /** * Description. */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * DryRun. */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * HostName. */ public Builder hostName(String hostName) { this.putQueryParameter("HostName", hostName); this.hostName = hostName; return this; } /** * HostNames. */ public Builder hostNames(java.util.List < String > hostNames) { this.putQueryParameter("HostNames", hostNames); this.hostNames = hostNames; return this; } /** * HpcClusterId. */ public Builder hpcClusterId(String hpcClusterId) { this.putQueryParameter("HpcClusterId", hpcClusterId); this.hpcClusterId = hpcClusterId; return this; } /** * HttpEndpoint. */ public Builder httpEndpoint(String httpEndpoint) { this.putQueryParameter("HttpEndpoint", httpEndpoint); this.httpEndpoint = httpEndpoint; return this; } /** * HttpPutResponseHopLimit. */ public Builder httpPutResponseHopLimit(Integer httpPutResponseHopLimit) { this.putQueryParameter("HttpPutResponseHopLimit", httpPutResponseHopLimit); this.httpPutResponseHopLimit = httpPutResponseHopLimit; return this; } /** * HttpTokens. */ public Builder httpTokens(String httpTokens) { this.putQueryParameter("HttpTokens", httpTokens); this.httpTokens = httpTokens; return this; } /** * ImageFamily. */ public Builder imageFamily(String imageFamily) { this.putQueryParameter("ImageFamily", imageFamily); this.imageFamily = imageFamily; return this; } /** * ImageId. */ public Builder imageId(String imageId) { this.putQueryParameter("ImageId", imageId); this.imageId = imageId; return this; } /** * InstanceChargeType. */ public Builder instanceChargeType(String instanceChargeType) { this.putQueryParameter("InstanceChargeType", instanceChargeType); this.instanceChargeType = instanceChargeType; return this; } /** * InstanceName. */ public Builder instanceName(String instanceName) { this.putQueryParameter("InstanceName", instanceName); this.instanceName = instanceName; return this; } /** * InstanceType. */ public Builder instanceType(String instanceType) { this.putQueryParameter("InstanceType", instanceType); this.instanceType = instanceType; return this; } /** * InternetChargeType. */ public Builder internetChargeType(String internetChargeType) { this.putQueryParameter("InternetChargeType", internetChargeType); this.internetChargeType = internetChargeType; return this; } /** * InternetMaxBandwidthIn. */ public Builder internetMaxBandwidthIn(Integer internetMaxBandwidthIn) { this.putQueryParameter("InternetMaxBandwidthIn", internetMaxBandwidthIn); this.internetMaxBandwidthIn = internetMaxBandwidthIn; return this; } /** * InternetMaxBandwidthOut. */ public Builder internetMaxBandwidthOut(Integer internetMaxBandwidthOut) { this.putQueryParameter("InternetMaxBandwidthOut", internetMaxBandwidthOut); this.internetMaxBandwidthOut = internetMaxBandwidthOut; return this; } /** * IoOptimized. */ public Builder ioOptimized(String ioOptimized) { this.putQueryParameter("IoOptimized", ioOptimized); this.ioOptimized = ioOptimized; return this; } /** * Ipv6Address. */ public Builder ipv6Address(java.util.List < String > ipv6Address) { this.putQueryParameter("Ipv6Address", ipv6Address); this.ipv6Address = ipv6Address; return this; } /** * Ipv6AddressCount. */ public Builder ipv6AddressCount(Integer ipv6AddressCount) { this.putQueryParameter("Ipv6AddressCount", ipv6AddressCount); this.ipv6AddressCount = ipv6AddressCount; return this; } /** * Isp. */ public Builder isp(String isp) { this.putQueryParameter("Isp", isp); this.isp = isp; return this; } /** * KeyPairName. */ public Builder keyPairName(String keyPairName) { this.putQueryParameter("KeyPairName", keyPairName); this.keyPairName = keyPairName; return this; } /** * LaunchTemplateId. */ public Builder launchTemplateId(String launchTemplateId) { this.putQueryParameter("LaunchTemplateId", launchTemplateId); this.launchTemplateId = launchTemplateId; return this; } /** * LaunchTemplateName. */ public Builder launchTemplateName(String launchTemplateName) { this.putQueryParameter("LaunchTemplateName", launchTemplateName); this.launchTemplateName = launchTemplateName; return this; } /** * LaunchTemplateVersion. */ public Builder launchTemplateVersion(Long launchTemplateVersion) { this.putQueryParameter("LaunchTemplateVersion", launchTemplateVersion); this.launchTemplateVersion = launchTemplateVersion; return this; } /** * MinAmount. */ public Builder minAmount(Integer minAmount) { this.putQueryParameter("MinAmount", minAmount); this.minAmount = minAmount; return this; } /** * NetworkInterface. */ public Builder networkInterface(java.util.List < NetworkInterface> networkInterface) { this.putQueryParameter("NetworkInterface", networkInterface); this.networkInterface = networkInterface; return this; } /** * NetworkInterfaceQueueNumber. */ public Builder networkInterfaceQueueNumber(Integer networkInterfaceQueueNumber) { this.putQueryParameter("NetworkInterfaceQueueNumber", networkInterfaceQueueNumber); this.networkInterfaceQueueNumber = networkInterfaceQueueNumber; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * Password. */ public Builder password(String password) { this.putQueryParameter("Password", password); this.password = password; return this; } /** * PasswordInherit. */ public Builder passwordInherit(Boolean passwordInherit) { this.putQueryParameter("PasswordInherit", passwordInherit); this.passwordInherit = passwordInherit; return this; } /** * Period. */ public Builder period(Integer period) { this.putQueryParameter("Period", period); this.period = period; return this; } /** * PeriodUnit. */ public Builder periodUnit(String periodUnit) { this.putQueryParameter("PeriodUnit", periodUnit); this.periodUnit = periodUnit; return this; } /** * PrivateIpAddress. */ public Builder privateIpAddress(String privateIpAddress) { this.putQueryParameter("PrivateIpAddress", privateIpAddress); this.privateIpAddress = privateIpAddress; return this; } /** * RamRoleName. */ public Builder ramRoleName(String ramRoleName) { this.putQueryParameter("RamRoleName", ramRoleName); this.ramRoleName = ramRoleName; 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; } /** * SecurityEnhancementStrategy. */ public Builder securityEnhancementStrategy(String securityEnhancementStrategy) { this.putQueryParameter("SecurityEnhancementStrategy", securityEnhancementStrategy); this.securityEnhancementStrategy = securityEnhancementStrategy; return this; } /** * SecurityGroupId. */ public Builder securityGroupId(String securityGroupId) { this.putQueryParameter("SecurityGroupId", securityGroupId); this.securityGroupId = securityGroupId; return this; } /** * SecurityGroupIds. */ public Builder securityGroupIds(java.util.List < String > securityGroupIds) { this.putQueryParameter("SecurityGroupIds", securityGroupIds); this.securityGroupIds = securityGroupIds; return this; } /** * SpotDuration. */ public Builder spotDuration(Integer spotDuration) { this.putQueryParameter("SpotDuration", spotDuration); this.spotDuration = spotDuration; return this; } /** * SpotInterruptionBehavior. */ public Builder spotInterruptionBehavior(String spotInterruptionBehavior) { this.putQueryParameter("SpotInterruptionBehavior", spotInterruptionBehavior); this.spotInterruptionBehavior = spotInterruptionBehavior; return this; } /** * SpotPriceLimit. */ public Builder spotPriceLimit(Float spotPriceLimit) { this.putQueryParameter("SpotPriceLimit", spotPriceLimit); this.spotPriceLimit = spotPriceLimit; return this; } /** * SpotStrategy. */ public Builder spotStrategy(String spotStrategy) { this.putQueryParameter("SpotStrategy", spotStrategy); this.spotStrategy = spotStrategy; return this; } /** * StorageSetId. */ public Builder storageSetId(String storageSetId) { this.putQueryParameter("StorageSetId", storageSetId); this.storageSetId = storageSetId; return this; } /** * StorageSetPartitionNumber. */ public Builder storageSetPartitionNumber(Integer storageSetPartitionNumber) { this.putQueryParameter("StorageSetPartitionNumber", storageSetPartitionNumber); this.storageSetPartitionNumber = storageSetPartitionNumber; return this; } /** * Tag. */ public Builder tag(java.util.List < Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } /** * Tenancy. */ public Builder tenancy(String tenancy) { this.putQueryParameter("Tenancy", tenancy); this.tenancy = tenancy; return this; } /** * UniqueSuffix. */ public Builder uniqueSuffix(Boolean uniqueSuffix) { this.putQueryParameter("UniqueSuffix", uniqueSuffix); this.uniqueSuffix = uniqueSuffix; return this; } /** * UserData. */ public Builder userData(String userData) { this.putQueryParameter("UserData", userData); this.userData = userData; return this; } /** * VSwitchId. */ public Builder vSwitchId(String vSwitchId) { this.putQueryParameter("VSwitchId", vSwitchId); this.vSwitchId = vSwitchId; return this; } /** * ZoneId. */ public Builder zoneId(String zoneId) { this.putQueryParameter("ZoneId", zoneId); this.zoneId = zoneId; return this; } @Override public RunInstancesRequest build() { return new RunInstancesRequest(this); } } public static class CpuOptions extends TeaModel { @NameInMap("Core") private Integer core; @NameInMap("Numa") private String numa; @NameInMap("ThreadsPerCore") private Integer threadsPerCore; private CpuOptions(Builder builder) { this.core = builder.core; this.numa = builder.numa; this.threadsPerCore = builder.threadsPerCore; } public static Builder builder() { return new Builder(); } public static CpuOptions create() { return builder().build(); } /** * @return core */ public Integer getCore() { return this.core; } /** * @return numa */ public String getNuma() { return this.numa; } /** * @return threadsPerCore */ public Integer getThreadsPerCore() { return this.threadsPerCore; } public static final class Builder { private Integer core; private String numa; private Integer threadsPerCore; /** * Core. */ public Builder core(Integer core) { this.core = core; return this; } /** * Numa. */ public Builder numa(String numa) { this.numa = numa; return this; } /** * ThreadsPerCore. */ public Builder threadsPerCore(Integer threadsPerCore) { this.threadsPerCore = threadsPerCore; return this; } public CpuOptions build() { return new CpuOptions(this); } } } public static class HibernationOptions extends TeaModel { @NameInMap("Configured") private Boolean configured; private HibernationOptions(Builder builder) { this.configured = builder.configured; } public static Builder builder() { return new Builder(); } public static HibernationOptions create() { return builder().build(); } /** * @return configured */ public Boolean getConfigured() { return this.configured; } public static final class Builder { private Boolean configured; /** * Configured. */ public Builder configured(Boolean configured) { this.configured = configured; return this; } public HibernationOptions build() { return new HibernationOptions(this); } } } public static class PrivatePoolOptions extends TeaModel { @NameInMap("Id") private String id; @NameInMap("MatchCriteria") private String matchCriteria; private PrivatePoolOptions(Builder builder) { this.id = builder.id; this.matchCriteria = builder.matchCriteria; } public static Builder builder() { return new Builder(); } public static PrivatePoolOptions create() { return builder().build(); } /** * @return id */ public String getId() { return this.id; } /** * @return matchCriteria */ public String getMatchCriteria() { return this.matchCriteria; } public static final class Builder { private String id; private String matchCriteria; /** * Id. */ public Builder id(String id) { this.id = id; return this; } /** * MatchCriteria. */ public Builder matchCriteria(String matchCriteria) { this.matchCriteria = matchCriteria; return this; } public PrivatePoolOptions build() { return new PrivatePoolOptions(this); } } } public static class SchedulerOptions extends TeaModel { @NameInMap("DedicatedHostClusterId") private String dedicatedHostClusterId; private SchedulerOptions(Builder builder) { this.dedicatedHostClusterId = builder.dedicatedHostClusterId; } public static Builder builder() { return new Builder(); } public static SchedulerOptions create() { return builder().build(); } /** * @return dedicatedHostClusterId */ public String getDedicatedHostClusterId() { return this.dedicatedHostClusterId; } public static final class Builder { private String dedicatedHostClusterId; /** * DedicatedHostClusterId. */ public Builder dedicatedHostClusterId(String dedicatedHostClusterId) { this.dedicatedHostClusterId = dedicatedHostClusterId; return this; } public SchedulerOptions build() { return new SchedulerOptions(this); } } } public static class SecurityOptions extends TeaModel { @NameInMap("ConfidentialComputingMode") private String confidentialComputingMode; @NameInMap("TrustedSystemMode") private String trustedSystemMode; private SecurityOptions(Builder builder) { this.confidentialComputingMode = builder.confidentialComputingMode; this.trustedSystemMode = builder.trustedSystemMode; } public static Builder builder() { return new Builder(); } public static SecurityOptions create() { return builder().build(); } /** * @return confidentialComputingMode */ public String getConfidentialComputingMode() { return this.confidentialComputingMode; } /** * @return trustedSystemMode */ public String getTrustedSystemMode() { return this.trustedSystemMode; } public static final class Builder { private String confidentialComputingMode; private String trustedSystemMode; /** * ConfidentialComputingMode. */ public Builder confidentialComputingMode(String confidentialComputingMode) { this.confidentialComputingMode = confidentialComputingMode; return this; } /** * TrustedSystemMode. */ public Builder trustedSystemMode(String trustedSystemMode) { this.trustedSystemMode = trustedSystemMode; return this; } public SecurityOptions build() { return new SecurityOptions(this); } } } public static class SystemDisk extends TeaModel { @NameInMap("AutoSnapshotPolicyId") private String autoSnapshotPolicyId; @NameInMap("Category") private String category; @NameInMap("Description") private String description; @NameInMap("DiskName") private String diskName; @NameInMap("PerformanceLevel") private String performanceLevel; @NameInMap("Size") private String size; @NameInMap("BurstingEnabled") private Boolean burstingEnabled; @NameInMap("EncryptAlgorithm") private String encryptAlgorithm; @NameInMap("Encrypted") private String encrypted; @NameInMap("KMSKeyId") private String KMSKeyId; @NameInMap("ProvisionedIops") private Long provisionedIops; @NameInMap("StorageClusterId") private String storageClusterId; private SystemDisk(Builder builder) { this.autoSnapshotPolicyId = builder.autoSnapshotPolicyId; this.category = builder.category; this.description = builder.description; this.diskName = builder.diskName; this.performanceLevel = builder.performanceLevel; this.size = builder.size; this.burstingEnabled = builder.burstingEnabled; this.encryptAlgorithm = builder.encryptAlgorithm; this.encrypted = builder.encrypted; this.KMSKeyId = builder.KMSKeyId; this.provisionedIops = builder.provisionedIops; this.storageClusterId = builder.storageClusterId; } public static Builder builder() { return new Builder(); } public static SystemDisk create() { return builder().build(); } /** * @return autoSnapshotPolicyId */ public String getAutoSnapshotPolicyId() { return this.autoSnapshotPolicyId; } /** * @return category */ public String getCategory() { return this.category; } /** * @return description */ public String getDescription() { return this.description; } /** * @return diskName */ public String getDiskName() { return this.diskName; } /** * @return performanceLevel */ public String getPerformanceLevel() { return this.performanceLevel; } /** * @return size */ public String getSize() { return this.size; } /** * @return burstingEnabled */ public Boolean getBurstingEnabled() { return this.burstingEnabled; } /** * @return encryptAlgorithm */ public String getEncryptAlgorithm() { return this.encryptAlgorithm; } /** * @return encrypted */ public String getEncrypted() { return this.encrypted; } /** * @return KMSKeyId */ public String getKMSKeyId() { return this.KMSKeyId; } /** * @return provisionedIops */ public Long getProvisionedIops() { return this.provisionedIops; } /** * @return storageClusterId */ public String getStorageClusterId() { return this.storageClusterId; } public static final class Builder { private String autoSnapshotPolicyId; private String category; private String description; private String diskName; private String performanceLevel; private String size; private Boolean burstingEnabled; private String encryptAlgorithm; private String encrypted; private String KMSKeyId; private Long provisionedIops; private String storageClusterId; /** * AutoSnapshotPolicyId. */ public Builder autoSnapshotPolicyId(String autoSnapshotPolicyId) { this.autoSnapshotPolicyId = autoSnapshotPolicyId; return this; } /** * Category. */ public Builder category(String category) { this.category = category; return this; } /** * Description. */ public Builder description(String description) { this.description = description; return this; } /** * DiskName. */ public Builder diskName(String diskName) { this.diskName = diskName; return this; } /** * PerformanceLevel. */ public Builder performanceLevel(String performanceLevel) { this.performanceLevel = performanceLevel; return this; } /** * Size. */ public Builder size(String size) { this.size = size; return this; } /** * BurstingEnabled. */ public Builder burstingEnabled(Boolean burstingEnabled) { this.burstingEnabled = burstingEnabled; return this; } /** * EncryptAlgorithm. */ public Builder encryptAlgorithm(String encryptAlgorithm) { this.encryptAlgorithm = encryptAlgorithm; return this; } /** * Encrypted. */ public Builder encrypted(String encrypted) { this.encrypted = encrypted; return this; } /** * KMSKeyId. */ public Builder KMSKeyId(String KMSKeyId) { this.KMSKeyId = KMSKeyId; return this; } /** * ProvisionedIops. */ public Builder provisionedIops(Long provisionedIops) { this.provisionedIops = provisionedIops; return this; } /** * StorageClusterId. */ public Builder storageClusterId(String storageClusterId) { this.storageClusterId = storageClusterId; return this; } public SystemDisk build() { return new SystemDisk(this); } } } public static class Arn extends TeaModel { @NameInMap("AssumeRoleFor") private Long assumeRoleFor; @NameInMap("RoleType") private String roleType; @NameInMap("Rolearn") private String rolearn; private Arn(Builder builder) { this.assumeRoleFor = builder.assumeRoleFor; this.roleType = builder.roleType; this.rolearn = builder.rolearn; } public static Builder builder() { return new Builder(); } public static Arn create() { return builder().build(); } /** * @return assumeRoleFor */ public Long getAssumeRoleFor() { return this.assumeRoleFor; } /** * @return roleType */ public String getRoleType() { return this.roleType; } /** * @return rolearn */ public String getRolearn() { return this.rolearn; } public static final class Builder { private Long assumeRoleFor; private String roleType; private String rolearn; /** * AssumeRoleFor. */ public Builder assumeRoleFor(Long assumeRoleFor) { this.assumeRoleFor = assumeRoleFor; return this; } /** * RoleType. */ public Builder roleType(String roleType) { this.roleType = roleType; return this; } /** * Rolearn. */ public Builder rolearn(String rolearn) { this.rolearn = rolearn; return this; } public Arn build() { return new Arn(this); } } } public static class DataDisk extends TeaModel { @NameInMap("AutoSnapshotPolicyId") private String autoSnapshotPolicyId; @NameInMap("BurstingEnabled") private Boolean burstingEnabled; @NameInMap("Category") private String category; @NameInMap("DeleteWithInstance") private Boolean deleteWithInstance; @NameInMap("Description") private String description; @NameInMap("Device") private String device; @NameInMap("DiskName") private String diskName; @NameInMap("EncryptAlgorithm") private String encryptAlgorithm; @NameInMap("Encrypted") private String encrypted; @NameInMap("KMSKeyId") private String KMSKeyId; @NameInMap("PerformanceLevel") private String performanceLevel; @NameInMap("ProvisionedIops") private Long provisionedIops; @NameInMap("Size") private Integer size; @NameInMap("SnapshotId") private String snapshotId; @NameInMap("StorageClusterId") private String storageClusterId; private DataDisk(Builder builder) { this.autoSnapshotPolicyId = builder.autoSnapshotPolicyId; this.burstingEnabled = builder.burstingEnabled; this.category = builder.category; this.deleteWithInstance = builder.deleteWithInstance; this.description = builder.description; this.device = builder.device; this.diskName = builder.diskName; this.encryptAlgorithm = builder.encryptAlgorithm; this.encrypted = builder.encrypted; this.KMSKeyId = builder.KMSKeyId; this.performanceLevel = builder.performanceLevel; this.provisionedIops = builder.provisionedIops; this.size = builder.size; this.snapshotId = builder.snapshotId; this.storageClusterId = builder.storageClusterId; } public static Builder builder() { return new Builder(); } public static DataDisk create() { return builder().build(); } /** * @return autoSnapshotPolicyId */ public String getAutoSnapshotPolicyId() { return this.autoSnapshotPolicyId; } /** * @return burstingEnabled */ public Boolean getBurstingEnabled() { return this.burstingEnabled; } /** * @return category */ public String getCategory() { return this.category; } /** * @return deleteWithInstance */ public Boolean getDeleteWithInstance() { return this.deleteWithInstance; } /** * @return description */ public String getDescription() { return this.description; } /** * @return device */ public String getDevice() { return this.device; } /** * @return diskName */ public String getDiskName() { return this.diskName; } /** * @return encryptAlgorithm */ public String getEncryptAlgorithm() { return this.encryptAlgorithm; } /** * @return encrypted */ public String getEncrypted() { return this.encrypted; } /** * @return KMSKeyId */ public String getKMSKeyId() { return this.KMSKeyId; } /** * @return performanceLevel */ public String getPerformanceLevel() { return this.performanceLevel; } /** * @return provisionedIops */ public Long getProvisionedIops() { return this.provisionedIops; } /** * @return size */ public Integer getSize() { return this.size; } /** * @return snapshotId */ public String getSnapshotId() { return this.snapshotId; } /** * @return storageClusterId */ public String getStorageClusterId() { return this.storageClusterId; } public static final class Builder { private String autoSnapshotPolicyId; private Boolean burstingEnabled; private String category; private Boolean deleteWithInstance; private String description; private String device; private String diskName; private String encryptAlgorithm; private String encrypted; private String KMSKeyId; private String performanceLevel; private Long provisionedIops; private Integer size; private String snapshotId; private String storageClusterId; /** * AutoSnapshotPolicyId. */ public Builder autoSnapshotPolicyId(String autoSnapshotPolicyId) { this.autoSnapshotPolicyId = autoSnapshotPolicyId; return this; } /** * BurstingEnabled. */ public Builder burstingEnabled(Boolean burstingEnabled) { this.burstingEnabled = burstingEnabled; return this; } /** * Category. */ public Builder category(String category) { this.category = category; return this; } /** * DeleteWithInstance. */ public Builder deleteWithInstance(Boolean deleteWithInstance) { this.deleteWithInstance = deleteWithInstance; return this; } /** * Description. */ public Builder description(String description) { this.description = description; return this; } /** * Device. */ public Builder device(String device) { this.device = device; return this; } /** * DiskName. */ public Builder diskName(String diskName) { this.diskName = diskName; return this; } /** * EncryptAlgorithm. */ public Builder encryptAlgorithm(String encryptAlgorithm) { this.encryptAlgorithm = encryptAlgorithm; return this; } /** * Encrypted. */ public Builder encrypted(String encrypted) { this.encrypted = encrypted; return this; } /** * KMSKeyId. */ public Builder KMSKeyId(String KMSKeyId) { this.KMSKeyId = KMSKeyId; return this; } /** * PerformanceLevel. */ public Builder performanceLevel(String performanceLevel) { this.performanceLevel = performanceLevel; return this; } /** * ProvisionedIops. */ public Builder provisionedIops(Long provisionedIops) { this.provisionedIops = provisionedIops; return this; } /** * Size. */ public Builder size(Integer size) { this.size = size; return this; } /** * SnapshotId. */ public Builder snapshotId(String snapshotId) { this.snapshotId = snapshotId; return this; } /** * StorageClusterId. */ public Builder storageClusterId(String storageClusterId) { this.storageClusterId = storageClusterId; return this; } public DataDisk build() { return new DataDisk(this); } } } public static class NetworkInterface extends TeaModel { @NameInMap("Description") private String description; @NameInMap("InstanceType") private String instanceType; @NameInMap("Ipv6Address") private java.util.List < String > ipv6Address; @NameInMap("Ipv6AddressCount") private Long ipv6AddressCount; @NameInMap("NetworkInterfaceName") private String networkInterfaceName; @NameInMap("NetworkInterfaceTrafficMode") private String networkInterfaceTrafficMode; @NameInMap("PrimaryIpAddress") private String primaryIpAddress; @NameInMap("QueueNumber") private Integer queueNumber; @NameInMap("QueuePairNumber") private Long queuePairNumber; @NameInMap("SecurityGroupId") private String securityGroupId; @NameInMap("SecurityGroupIds") private java.util.List < String > securityGroupIds; @NameInMap("VSwitchId") private String vSwitchId; private NetworkInterface(Builder builder) { this.description = builder.description; this.instanceType = builder.instanceType; this.ipv6Address = builder.ipv6Address; this.ipv6AddressCount = builder.ipv6AddressCount; this.networkInterfaceName = builder.networkInterfaceName; this.networkInterfaceTrafficMode = builder.networkInterfaceTrafficMode; this.primaryIpAddress = builder.primaryIpAddress; this.queueNumber = builder.queueNumber; this.queuePairNumber = builder.queuePairNumber; this.securityGroupId = builder.securityGroupId; this.securityGroupIds = builder.securityGroupIds; this.vSwitchId = builder.vSwitchId; } public static Builder builder() { return new Builder(); } public static NetworkInterface create() { return builder().build(); } /** * @return description */ public String getDescription() { return this.description; } /** * @return instanceType */ public String getInstanceType() { return this.instanceType; } /** * @return ipv6Address */ public java.util.List < String > getIpv6Address() { return this.ipv6Address; } /** * @return ipv6AddressCount */ public Long getIpv6AddressCount() { return this.ipv6AddressCount; } /** * @return networkInterfaceName */ public String getNetworkInterfaceName() { return this.networkInterfaceName; } /** * @return networkInterfaceTrafficMode */ public String getNetworkInterfaceTrafficMode() { return this.networkInterfaceTrafficMode; } /** * @return primaryIpAddress */ public String getPrimaryIpAddress() { return this.primaryIpAddress; } /** * @return queueNumber */ public Integer getQueueNumber() { return this.queueNumber; } /** * @return queuePairNumber */ public Long getQueuePairNumber() { return this.queuePairNumber; } /** * @return securityGroupId */ public String getSecurityGroupId() { return this.securityGroupId; } /** * @return securityGroupIds */ public java.util.List < String > getSecurityGroupIds() { return this.securityGroupIds; } /** * @return vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } public static final class Builder { private String description; private String instanceType; private java.util.List < String > ipv6Address; private Long ipv6AddressCount; private String networkInterfaceName; private String networkInterfaceTrafficMode; private String primaryIpAddress; private Integer queueNumber; private Long queuePairNumber; private String securityGroupId; private java.util.List < String > securityGroupIds; private String vSwitchId; /** * Description. */ public Builder description(String description) { this.description = description; return this; } /** * InstanceType. */ public Builder instanceType(String instanceType) { this.instanceType = instanceType; return this; } /** * Ipv6Address. */ public Builder ipv6Address(java.util.List < String > ipv6Address) { this.ipv6Address = ipv6Address; return this; } /** * Ipv6AddressCount. */ public Builder ipv6AddressCount(Long ipv6AddressCount) { this.ipv6AddressCount = ipv6AddressCount; return this; } /** * NetworkInterfaceName. */ public Builder networkInterfaceName(String networkInterfaceName) { this.networkInterfaceName = networkInterfaceName; return this; } /** * NetworkInterfaceTrafficMode. */ public Builder networkInterfaceTrafficMode(String networkInterfaceTrafficMode) { this.networkInterfaceTrafficMode = networkInterfaceTrafficMode; return this; } /** * PrimaryIpAddress. */ public Builder primaryIpAddress(String primaryIpAddress) { this.primaryIpAddress = primaryIpAddress; return this; } /** * QueueNumber. */ public Builder queueNumber(Integer queueNumber) { this.queueNumber = queueNumber; return this; } /** * QueuePairNumber. */ public Builder queuePairNumber(Long queuePairNumber) { this.queuePairNumber = queuePairNumber; return this; } /** * SecurityGroupId. */ public Builder securityGroupId(String securityGroupId) { this.securityGroupId = securityGroupId; return this; } /** * SecurityGroupIds. */ public Builder securityGroupIds(java.util.List < String > securityGroupIds) { this.securityGroupIds = securityGroupIds; return this; } /** * VSwitchId. */ public Builder vSwitchId(String vSwitchId) { this.vSwitchId = vSwitchId; return this; } public NetworkInterface build() { return new NetworkInterface(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