com.aliyuncs.ecs.model.v20140526.CreateInstanceRequest Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.ecs.model.v20140526;
import com.aliyuncs.RpcAcsRequest;
import java.util.List;
/**
* @author auto create
* @version
*/
public class CreateInstanceRequest extends RpcAcsRequest {
public CreateInstanceRequest() {
super("Ecs", "2014-05-26", "CreateInstance", "ecs");
}
private Long resourceOwnerId;
private String hpcClusterId;
private String securityEnhancementStrategy;
private String keyPairName;
private Float spotPriceLimit;
private Boolean deletionProtection;
private String resourceGroupId;
private String hostName;
private String password;
private List tags;
private Integer autoRenewPeriod;
private String nodeControllerId;
private Integer period;
private Boolean dryRun;
private Long ownerId;
private String vSwitchId;
private String privateIpAddress;
private String spotStrategy;
private String periodUnit;
private String instanceName;
private Boolean autoRenew;
private String internetChargeType;
private String zoneId;
private Integer internetMaxBandwidthIn;
private Boolean useAdditionalService;
private String imageId;
private String clientToken;
private String vlanId;
private String spotInterruptionBehavior;
private String ioOptimized;
private String securityGroupId;
private Integer internetMaxBandwidthOut;
private String description;
private String systemDiskCategory;
private String userData;
private Boolean passwordInherit;
private String instanceType;
private String instanceChargeType;
private String deploymentSetId;
private String innerIpAddress;
private String resourceOwnerAccount;
private String ownerAccount;
private String systemDiskDiskName;
private String ramRoleName;
private String dedicatedHostId;
private String clusterId;
private String creditSpecification;
private List dataDisks;
private Integer systemDiskSize;
private String systemDiskDescription;
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public void setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
if(resourceOwnerId != null){
putQueryParameter("ResourceOwnerId", resourceOwnerId.toString());
}
}
public String getHpcClusterId() {
return this.hpcClusterId;
}
public void setHpcClusterId(String hpcClusterId) {
this.hpcClusterId = hpcClusterId;
if(hpcClusterId != null){
putQueryParameter("HpcClusterId", hpcClusterId);
}
}
public String getSecurityEnhancementStrategy() {
return this.securityEnhancementStrategy;
}
public void setSecurityEnhancementStrategy(String securityEnhancementStrategy) {
this.securityEnhancementStrategy = securityEnhancementStrategy;
if(securityEnhancementStrategy != null){
putQueryParameter("SecurityEnhancementStrategy", securityEnhancementStrategy);
}
}
public String getKeyPairName() {
return this.keyPairName;
}
public void setKeyPairName(String keyPairName) {
this.keyPairName = keyPairName;
if(keyPairName != null){
putQueryParameter("KeyPairName", keyPairName);
}
}
public Float getSpotPriceLimit() {
return this.spotPriceLimit;
}
public void setSpotPriceLimit(Float spotPriceLimit) {
this.spotPriceLimit = spotPriceLimit;
if(spotPriceLimit != null){
putQueryParameter("SpotPriceLimit", spotPriceLimit.toString());
}
}
public Boolean getDeletionProtection() {
return this.deletionProtection;
}
public void setDeletionProtection(Boolean deletionProtection) {
this.deletionProtection = deletionProtection;
if(deletionProtection != null){
putQueryParameter("DeletionProtection", deletionProtection.toString());
}
}
public String getResourceGroupId() {
return this.resourceGroupId;
}
public void setResourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
if(resourceGroupId != null){
putQueryParameter("ResourceGroupId", resourceGroupId);
}
}
public String getHostName() {
return this.hostName;
}
public void setHostName(String hostName) {
this.hostName = hostName;
if(hostName != null){
putQueryParameter("HostName", hostName);
}
}
public String getPassword() {
return this.password;
}
public void setPassword(String password) {
this.password = password;
if(password != null){
putQueryParameter("Password", password);
}
}
public List getTags() {
return this.tags;
}
public void setTags(List tags) {
this.tags = tags;
if (tags != null) {
for (int depth1 = 0; depth1 < tags.size(); depth1++) {
putQueryParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue());
putQueryParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey());
}
}
}
public Integer getAutoRenewPeriod() {
return this.autoRenewPeriod;
}
public void setAutoRenewPeriod(Integer autoRenewPeriod) {
this.autoRenewPeriod = autoRenewPeriod;
if(autoRenewPeriod != null){
putQueryParameter("AutoRenewPeriod", autoRenewPeriod.toString());
}
}
public String getNodeControllerId() {
return this.nodeControllerId;
}
public void setNodeControllerId(String nodeControllerId) {
this.nodeControllerId = nodeControllerId;
if(nodeControllerId != null){
putQueryParameter("NodeControllerId", nodeControllerId);
}
}
public Integer getPeriod() {
return this.period;
}
public void setPeriod(Integer period) {
this.period = period;
if(period != null){
putQueryParameter("Period", period.toString());
}
}
public Boolean getDryRun() {
return this.dryRun;
}
public void setDryRun(Boolean dryRun) {
this.dryRun = dryRun;
if(dryRun != null){
putQueryParameter("DryRun", dryRun.toString());
}
}
public Long getOwnerId() {
return this.ownerId;
}
public void setOwnerId(Long ownerId) {
this.ownerId = ownerId;
if(ownerId != null){
putQueryParameter("OwnerId", ownerId.toString());
}
}
public String getVSwitchId() {
return this.vSwitchId;
}
public void setVSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
if(vSwitchId != null){
putQueryParameter("VSwitchId", vSwitchId);
}
}
public String getPrivateIpAddress() {
return this.privateIpAddress;
}
public void setPrivateIpAddress(String privateIpAddress) {
this.privateIpAddress = privateIpAddress;
if(privateIpAddress != null){
putQueryParameter("PrivateIpAddress", privateIpAddress);
}
}
public String getSpotStrategy() {
return this.spotStrategy;
}
public void setSpotStrategy(String spotStrategy) {
this.spotStrategy = spotStrategy;
if(spotStrategy != null){
putQueryParameter("SpotStrategy", spotStrategy);
}
}
public String getPeriodUnit() {
return this.periodUnit;
}
public void setPeriodUnit(String periodUnit) {
this.periodUnit = periodUnit;
if(periodUnit != null){
putQueryParameter("PeriodUnit", periodUnit);
}
}
public String getInstanceName() {
return this.instanceName;
}
public void setInstanceName(String instanceName) {
this.instanceName = instanceName;
if(instanceName != null){
putQueryParameter("InstanceName", instanceName);
}
}
public Boolean getAutoRenew() {
return this.autoRenew;
}
public void setAutoRenew(Boolean autoRenew) {
this.autoRenew = autoRenew;
if(autoRenew != null){
putQueryParameter("AutoRenew", autoRenew.toString());
}
}
public String getInternetChargeType() {
return this.internetChargeType;
}
public void setInternetChargeType(String internetChargeType) {
this.internetChargeType = internetChargeType;
if(internetChargeType != null){
putQueryParameter("InternetChargeType", internetChargeType);
}
}
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
if(zoneId != null){
putQueryParameter("ZoneId", zoneId);
}
}
public Integer getInternetMaxBandwidthIn() {
return this.internetMaxBandwidthIn;
}
public void setInternetMaxBandwidthIn(Integer internetMaxBandwidthIn) {
this.internetMaxBandwidthIn = internetMaxBandwidthIn;
if(internetMaxBandwidthIn != null){
putQueryParameter("InternetMaxBandwidthIn", internetMaxBandwidthIn.toString());
}
}
public Boolean getUseAdditionalService() {
return this.useAdditionalService;
}
public void setUseAdditionalService(Boolean useAdditionalService) {
this.useAdditionalService = useAdditionalService;
if(useAdditionalService != null){
putQueryParameter("UseAdditionalService", useAdditionalService.toString());
}
}
public String getImageId() {
return this.imageId;
}
public void setImageId(String imageId) {
this.imageId = imageId;
if(imageId != null){
putQueryParameter("ImageId", imageId);
}
}
public String getClientToken() {
return this.clientToken;
}
public void setClientToken(String clientToken) {
this.clientToken = clientToken;
if(clientToken != null){
putQueryParameter("ClientToken", clientToken);
}
}
public String getVlanId() {
return this.vlanId;
}
public void setVlanId(String vlanId) {
this.vlanId = vlanId;
if(vlanId != null){
putQueryParameter("VlanId", vlanId);
}
}
public String getSpotInterruptionBehavior() {
return this.spotInterruptionBehavior;
}
public void setSpotInterruptionBehavior(String spotInterruptionBehavior) {
this.spotInterruptionBehavior = spotInterruptionBehavior;
if(spotInterruptionBehavior != null){
putQueryParameter("SpotInterruptionBehavior", spotInterruptionBehavior);
}
}
public String getIoOptimized() {
return this.ioOptimized;
}
public void setIoOptimized(String ioOptimized) {
this.ioOptimized = ioOptimized;
if(ioOptimized != null){
putQueryParameter("IoOptimized", ioOptimized);
}
}
public String getSecurityGroupId() {
return this.securityGroupId;
}
public void setSecurityGroupId(String securityGroupId) {
this.securityGroupId = securityGroupId;
if(securityGroupId != null){
putQueryParameter("SecurityGroupId", securityGroupId);
}
}
public Integer getInternetMaxBandwidthOut() {
return this.internetMaxBandwidthOut;
}
public void setInternetMaxBandwidthOut(Integer internetMaxBandwidthOut) {
this.internetMaxBandwidthOut = internetMaxBandwidthOut;
if(internetMaxBandwidthOut != null){
putQueryParameter("InternetMaxBandwidthOut", internetMaxBandwidthOut.toString());
}
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
if(description != null){
putQueryParameter("Description", description);
}
}
public String getSystemDiskCategory() {
return this.systemDiskCategory;
}
public void setSystemDiskCategory(String systemDiskCategory) {
this.systemDiskCategory = systemDiskCategory;
if(systemDiskCategory != null){
putQueryParameter("SystemDisk.Category", systemDiskCategory);
}
}
public String getUserData() {
return this.userData;
}
public void setUserData(String userData) {
this.userData = userData;
if(userData != null){
putQueryParameter("UserData", userData);
}
}
public Boolean getPasswordInherit() {
return this.passwordInherit;
}
public void setPasswordInherit(Boolean passwordInherit) {
this.passwordInherit = passwordInherit;
if(passwordInherit != null){
putQueryParameter("PasswordInherit", passwordInherit.toString());
}
}
public String getInstanceType() {
return this.instanceType;
}
public void setInstanceType(String instanceType) {
this.instanceType = instanceType;
if(instanceType != null){
putQueryParameter("InstanceType", instanceType);
}
}
public String getInstanceChargeType() {
return this.instanceChargeType;
}
public void setInstanceChargeType(String instanceChargeType) {
this.instanceChargeType = instanceChargeType;
if(instanceChargeType != null){
putQueryParameter("InstanceChargeType", instanceChargeType);
}
}
public String getDeploymentSetId() {
return this.deploymentSetId;
}
public void setDeploymentSetId(String deploymentSetId) {
this.deploymentSetId = deploymentSetId;
if(deploymentSetId != null){
putQueryParameter("DeploymentSetId", deploymentSetId);
}
}
public String getInnerIpAddress() {
return this.innerIpAddress;
}
public void setInnerIpAddress(String innerIpAddress) {
this.innerIpAddress = innerIpAddress;
if(innerIpAddress != null){
putQueryParameter("InnerIpAddress", innerIpAddress);
}
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public void setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
if(resourceOwnerAccount != null){
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
}
public String getOwnerAccount() {
return this.ownerAccount;
}
public void setOwnerAccount(String ownerAccount) {
this.ownerAccount = ownerAccount;
if(ownerAccount != null){
putQueryParameter("OwnerAccount", ownerAccount);
}
}
public String getSystemDiskDiskName() {
return this.systemDiskDiskName;
}
public void setSystemDiskDiskName(String systemDiskDiskName) {
this.systemDiskDiskName = systemDiskDiskName;
if(systemDiskDiskName != null){
putQueryParameter("SystemDisk.DiskName", systemDiskDiskName);
}
}
public String getRamRoleName() {
return this.ramRoleName;
}
public void setRamRoleName(String ramRoleName) {
this.ramRoleName = ramRoleName;
if(ramRoleName != null){
putQueryParameter("RamRoleName", ramRoleName);
}
}
public String getDedicatedHostId() {
return this.dedicatedHostId;
}
public void setDedicatedHostId(String dedicatedHostId) {
this.dedicatedHostId = dedicatedHostId;
if(dedicatedHostId != null){
putQueryParameter("DedicatedHostId", dedicatedHostId);
}
}
public String getClusterId() {
return this.clusterId;
}
public void setClusterId(String clusterId) {
this.clusterId = clusterId;
if(clusterId != null){
putQueryParameter("ClusterId", clusterId);
}
}
public String getCreditSpecification() {
return this.creditSpecification;
}
public void setCreditSpecification(String creditSpecification) {
this.creditSpecification = creditSpecification;
if(creditSpecification != null){
putQueryParameter("CreditSpecification", creditSpecification);
}
}
public List getDataDisks() {
return this.dataDisks;
}
public void setDataDisks(List dataDisks) {
this.dataDisks = dataDisks;
if (dataDisks != null) {
for (int depth1 = 0; depth1 < dataDisks.size(); depth1++) {
putQueryParameter("DataDisk." + (depth1 + 1) + ".DiskName" , dataDisks.get(depth1).getDiskName());
putQueryParameter("DataDisk." + (depth1 + 1) + ".SnapshotId" , dataDisks.get(depth1).getSnapshotId());
putQueryParameter("DataDisk." + (depth1 + 1) + ".Size" , dataDisks.get(depth1).getSize());
putQueryParameter("DataDisk." + (depth1 + 1) + ".Encrypted" , dataDisks.get(depth1).getEncrypted());
putQueryParameter("DataDisk." + (depth1 + 1) + ".Description" , dataDisks.get(depth1).getDescription());
putQueryParameter("DataDisk." + (depth1 + 1) + ".Category" , dataDisks.get(depth1).getCategory());
putQueryParameter("DataDisk." + (depth1 + 1) + ".KMSKeyId" , dataDisks.get(depth1).getKMSKeyId());
putQueryParameter("DataDisk." + (depth1 + 1) + ".Device" , dataDisks.get(depth1).getDevice());
putQueryParameter("DataDisk." + (depth1 + 1) + ".DeleteWithInstance" , dataDisks.get(depth1).getDeleteWithInstance());
}
}
}
public Integer getSystemDiskSize() {
return this.systemDiskSize;
}
public void setSystemDiskSize(Integer systemDiskSize) {
this.systemDiskSize = systemDiskSize;
if(systemDiskSize != null){
putQueryParameter("SystemDisk.Size", systemDiskSize.toString());
}
}
public String getSystemDiskDescription() {
return this.systemDiskDescription;
}
public void setSystemDiskDescription(String systemDiskDescription) {
this.systemDiskDescription = systemDiskDescription;
if(systemDiskDescription != null){
putQueryParameter("SystemDisk.Description", systemDiskDescription);
}
}
public static class Tag {
private String value;
private String key;
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
public String getKey() {
return this.key;
}
public void setKey(String key) {
this.key = key;
}
}
public static class DataDisk {
private String diskName;
private String snapshotId;
private Integer size;
private Boolean encrypted;
private String description;
private String category;
private String kMSKeyId;
private String device;
private Boolean deleteWithInstance;
public String getDiskName() {
return this.diskName;
}
public void setDiskName(String diskName) {
this.diskName = diskName;
}
public String getSnapshotId() {
return this.snapshotId;
}
public void setSnapshotId(String snapshotId) {
this.snapshotId = snapshotId;
}
public Integer getSize() {
return this.size;
}
public void setSize(Integer size) {
this.size = size;
}
public Boolean getEncrypted() {
return this.encrypted;
}
public void setEncrypted(Boolean encrypted) {
this.encrypted = encrypted;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public String getCategory() {
return this.category;
}
public void setCategory(String category) {
this.category = category;
}
public String getKMSKeyId() {
return this.kMSKeyId;
}
public void setKMSKeyId(String kMSKeyId) {
this.kMSKeyId = kMSKeyId;
}
public String getDevice() {
return this.device;
}
public void setDevice(String device) {
this.device = device;
}
public Boolean getDeleteWithInstance() {
return this.deleteWithInstance;
}
public void setDeleteWithInstance(Boolean deleteWithInstance) {
this.deleteWithInstance = deleteWithInstance;
}
}
@Override
public Class getResponseClass() {
return CreateInstanceResponse.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy