com.aliyun.sdk.service.ecs20140526.models.CreateInstanceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-ecs20140526 Show documentation
Show all versions of alibabacloud-ecs20140526 Show documentation
Alibaba Cloud Ecs (20140526) Async SDK for Java
// 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 CreateInstanceRequest} extends {@link RequestModel}
*
* CreateInstanceRequest
*/
public class CreateInstanceRequest extends Request {
@Query
@NameInMap("HibernationOptions")
private HibernationOptions hibernationOptions;
@Query
@NameInMap("PrivatePoolOptions")
private PrivatePoolOptions privatePoolOptions;
@Query
@NameInMap("SystemDisk")
private SystemDisk systemDisk;
@Host
@NameInMap("SourceRegionId")
private String sourceRegionId;
@Query
@NameInMap("Affinity")
private String affinity;
@Query
@NameInMap("Arn")
private java.util.List < Arn> arn;
@Query
@NameInMap("AutoRenew")
private Boolean autoRenew;
@Query
@NameInMap("AutoRenewPeriod")
private Integer autoRenewPeriod;
@Query
@NameInMap("ClientToken")
private String clientToken;
@Query
@NameInMap("ClusterId")
private String clusterId;
@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("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("InnerIpAddress")
private String innerIpAddress;
@Query
@NameInMap("InstanceChargeType")
private String instanceChargeType;
@Query
@NameInMap("InstanceName")
private String instanceName;
@Query
@NameInMap("InstanceType")
@Validation(required = true)
private String instanceType;
@Query
@NameInMap("InternetChargeType")
private String internetChargeType;
@Query
@NameInMap("InternetMaxBandwidthIn")
@Validation(maximum = 200, minimum = 1)
private Integer internetMaxBandwidthIn;
@Query
@NameInMap("InternetMaxBandwidthOut")
private Integer internetMaxBandwidthOut;
@Query
@NameInMap("IoOptimized")
private String ioOptimized;
@Query
@NameInMap("KeyPairName")
private String keyPairName;
@Query
@NameInMap("NodeControllerId")
private String nodeControllerId;
@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("SpotDuration")
@Validation(maximum = 6)
private Integer spotDuration;
@Query
@NameInMap("SpotInterruptionBehavior")
private String spotInterruptionBehavior;
@Query
@NameInMap("SpotPriceLimit")
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("UseAdditionalService")
private Boolean useAdditionalService;
@Query
@NameInMap("UserData")
private String userData;
@Query
@NameInMap("VSwitchId")
private String vSwitchId;
@Query
@NameInMap("VlanId")
private String vlanId;
@Query
@NameInMap("ZoneId")
private String zoneId;
private CreateInstanceRequest(Builder builder) {
super(builder);
this.hibernationOptions = builder.hibernationOptions;
this.privatePoolOptions = builder.privatePoolOptions;
this.systemDisk = builder.systemDisk;
this.sourceRegionId = builder.sourceRegionId;
this.affinity = builder.affinity;
this.arn = builder.arn;
this.autoRenew = builder.autoRenew;
this.autoRenewPeriod = builder.autoRenewPeriod;
this.clientToken = builder.clientToken;
this.clusterId = builder.clusterId;
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.hpcClusterId = builder.hpcClusterId;
this.httpEndpoint = builder.httpEndpoint;
this.httpPutResponseHopLimit = builder.httpPutResponseHopLimit;
this.httpTokens = builder.httpTokens;
this.imageFamily = builder.imageFamily;
this.imageId = builder.imageId;
this.innerIpAddress = builder.innerIpAddress;
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.keyPairName = builder.keyPairName;
this.nodeControllerId = builder.nodeControllerId;
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.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.useAdditionalService = builder.useAdditionalService;
this.userData = builder.userData;
this.vSwitchId = builder.vSwitchId;
this.vlanId = builder.vlanId;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static CreateInstanceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return hibernationOptions
*/
public HibernationOptions getHibernationOptions() {
return this.hibernationOptions;
}
/**
* @return privatePoolOptions
*/
public PrivatePoolOptions getPrivatePoolOptions() {
return this.privatePoolOptions;
}
/**
* @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 arn
*/
public java.util.List < Arn> getArn() {
return this.arn;
}
/**
* @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 clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @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 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 innerIpAddress
*/
public String getInnerIpAddress() {
return this.innerIpAddress;
}
/**
* @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 keyPairName
*/
public String getKeyPairName() {
return this.keyPairName;
}
/**
* @return nodeControllerId
*/
public String getNodeControllerId() {
return this.nodeControllerId;
}
/**
* @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 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 useAdditionalService
*/
public Boolean getUseAdditionalService() {
return this.useAdditionalService;
}
/**
* @return userData
*/
public String getUserData() {
return this.userData;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return vlanId
*/
public String getVlanId() {
return this.vlanId;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder extends Request.Builder {
private HibernationOptions hibernationOptions;
private PrivatePoolOptions privatePoolOptions;
private SystemDisk systemDisk;
private String sourceRegionId;
private String affinity;
private java.util.List < Arn> arn;
private Boolean autoRenew;
private Integer autoRenewPeriod;
private String clientToken;
private String clusterId;
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 String hpcClusterId;
private String httpEndpoint;
private Integer httpPutResponseHopLimit;
private String httpTokens;
private String imageFamily;
private String imageId;
private String innerIpAddress;
private String instanceChargeType;
private String instanceName;
private String instanceType;
private String internetChargeType;
private Integer internetMaxBandwidthIn;
private Integer internetMaxBandwidthOut;
private String ioOptimized;
private String keyPairName;
private String nodeControllerId;
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 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 useAdditionalService;
private String userData;
private String vSwitchId;
private String vlanId;
private String zoneId;
private Builder() {
super();
}
private Builder(CreateInstanceRequest request) {
super(request);
this.hibernationOptions = request.hibernationOptions;
this.privatePoolOptions = request.privatePoolOptions;
this.systemDisk = request.systemDisk;
this.sourceRegionId = request.sourceRegionId;
this.affinity = request.affinity;
this.arn = request.arn;
this.autoRenew = request.autoRenew;
this.autoRenewPeriod = request.autoRenewPeriod;
this.clientToken = request.clientToken;
this.clusterId = request.clusterId;
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.hpcClusterId = request.hpcClusterId;
this.httpEndpoint = request.httpEndpoint;
this.httpPutResponseHopLimit = request.httpPutResponseHopLimit;
this.httpTokens = request.httpTokens;
this.imageFamily = request.imageFamily;
this.imageId = request.imageId;
this.innerIpAddress = request.innerIpAddress;
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.keyPairName = request.keyPairName;
this.nodeControllerId = request.nodeControllerId;
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.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.useAdditionalService = request.useAdditionalService;
this.userData = request.userData;
this.vSwitchId = request.vSwitchId;
this.vlanId = request.vlanId;
this.zoneId = request.zoneId;
}
/**
* 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;
}
/**
* 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;
}
/**
* Arn.
*/
public Builder arn(java.util.List < Arn> arn) {
this.putQueryParameter("Arn", arn);
this.arn = arn;
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;
}
/**
* ClusterId.
*/
public Builder clusterId(String clusterId) {
this.putQueryParameter("ClusterId", clusterId);
this.clusterId = clusterId;
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;
}
/**
* 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;
}
/**
* InnerIpAddress.
*/
public Builder innerIpAddress(String innerIpAddress) {
this.putQueryParameter("InnerIpAddress", innerIpAddress);
this.innerIpAddress = innerIpAddress;
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;
}
/**
* KeyPairName.
*/
public Builder keyPairName(String keyPairName) {
this.putQueryParameter("KeyPairName", keyPairName);
this.keyPairName = keyPairName;
return this;
}
/**
* NodeControllerId.
*/
public Builder nodeControllerId(String nodeControllerId) {
this.putQueryParameter("NodeControllerId", nodeControllerId);
this.nodeControllerId = nodeControllerId;
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;
}
/**
* 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;
}
/**
* UseAdditionalService.
*/
public Builder useAdditionalService(Boolean useAdditionalService) {
this.putQueryParameter("UseAdditionalService", useAdditionalService);
this.useAdditionalService = useAdditionalService;
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;
}
/**
* VlanId.
*/
public Builder vlanId(String vlanId) {
this.putQueryParameter("VlanId", vlanId);
this.vlanId = vlanId;
return this;
}
/**
* ZoneId.
*/
public Builder zoneId(String zoneId) {
this.putQueryParameter("ZoneId", zoneId);
this.zoneId = zoneId;
return this;
}
@Override
public CreateInstanceRequest build() {
return new CreateInstanceRequest(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 SystemDisk extends TeaModel {
@NameInMap("Category")
private String category;
@NameInMap("Description")
private String description;
@NameInMap("DiskName")
private String diskName;
@NameInMap("PerformanceLevel")
private String performanceLevel;
@NameInMap("Size")
private Integer size;
@NameInMap("StorageClusterId")
private String storageClusterId;
private SystemDisk(Builder builder) {
this.category = builder.category;
this.description = builder.description;
this.diskName = builder.diskName;
this.performanceLevel = builder.performanceLevel;
this.size = builder.size;
this.storageClusterId = builder.storageClusterId;
}
public static Builder builder() {
return new Builder();
}
public static SystemDisk create() {
return builder().build();
}
/**
* @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 Integer getSize() {
return this.size;
}
/**
* @return storageClusterId
*/
public String getStorageClusterId() {
return this.storageClusterId;
}
public static final class Builder {
private String category;
private String description;
private String diskName;
private String performanceLevel;
private Integer size;
private String storageClusterId;
/**
* 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(Integer size) {
this.size = size;
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("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 Boolean encrypted;
@NameInMap("KMSKeyId")
private String KMSKeyId;
@NameInMap("PerformanceLevel")
private String performanceLevel;
@NameInMap("Size")
private Integer size;
@NameInMap("SnapshotId")
private String snapshotId;
@NameInMap("StorageClusterId")
private String storageClusterId;
private DataDisk(Builder builder) {
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.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 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 Boolean getEncrypted() {
return this.encrypted;
}
/**
* @return KMSKeyId
*/
public String getKMSKeyId() {
return this.KMSKeyId;
}
/**
* @return performanceLevel
*/
public String getPerformanceLevel() {
return this.performanceLevel;
}
/**
* @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 category;
private Boolean deleteWithInstance;
private String description;
private String device;
private String diskName;
private String encryptAlgorithm;
private Boolean encrypted;
private String KMSKeyId;
private String performanceLevel;
private Integer size;
private String snapshotId;
private String storageClusterId;
/**
* 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(Boolean 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;
}
/**
* 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 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