com.aliyun.sdk.service.ecs20140526.models.CreateAutoProvisioningGroupRequest 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 CreateAutoProvisioningGroupRequest} extends {@link RequestModel}
*
* CreateAutoProvisioningGroupRequest
*/
public class CreateAutoProvisioningGroupRequest extends Request {
@Query
@NameInMap("LaunchConfiguration")
private LaunchConfiguration launchConfiguration;
@Query
@NameInMap("AutoProvisioningGroupName")
private String autoProvisioningGroupName;
@Query
@NameInMap("AutoProvisioningGroupType")
private String autoProvisioningGroupType;
@Query
@NameInMap("ClientToken")
private String clientToken;
@Query
@NameInMap("DataDiskConfig")
private java.util.List < DataDiskConfig> dataDiskConfig;
@Query
@NameInMap("DefaultTargetCapacityType")
private String defaultTargetCapacityType;
@Query
@NameInMap("Description")
private String description;
@Query
@NameInMap("ExcessCapacityTerminationPolicy")
private String excessCapacityTerminationPolicy;
@Query
@NameInMap("HibernationOptionsConfigured")
private Boolean hibernationOptionsConfigured;
@Query
@NameInMap("LaunchTemplateConfig")
private java.util.List < LaunchTemplateConfig> launchTemplateConfig;
@Query
@NameInMap("LaunchTemplateId")
private String launchTemplateId;
@Query
@NameInMap("LaunchTemplateVersion")
private String launchTemplateVersion;
@Query
@NameInMap("MaxSpotPrice")
private Float maxSpotPrice;
@Query
@NameInMap("MinTargetCapacity")
private String minTargetCapacity;
@Query
@NameInMap("OwnerAccount")
private String ownerAccount;
@Query
@NameInMap("OwnerId")
private Long ownerId;
@Query
@NameInMap("PayAsYouGoAllocationStrategy")
private String payAsYouGoAllocationStrategy;
@Query
@NameInMap("PayAsYouGoTargetCapacity")
private String payAsYouGoTargetCapacity;
@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("SpotAllocationStrategy")
private String spotAllocationStrategy;
@Query
@NameInMap("SpotInstanceInterruptionBehavior")
private String spotInstanceInterruptionBehavior;
@Query
@NameInMap("SpotInstancePoolsToUseCount")
private Integer spotInstancePoolsToUseCount;
@Query
@NameInMap("SpotTargetCapacity")
private String spotTargetCapacity;
@Query
@NameInMap("SystemDiskConfig")
private java.util.List < SystemDiskConfig> systemDiskConfig;
@Query
@NameInMap("TerminateInstances")
private Boolean terminateInstances;
@Query
@NameInMap("TerminateInstancesWithExpiration")
private Boolean terminateInstancesWithExpiration;
@Query
@NameInMap("TotalTargetCapacity")
@Validation(required = true)
private String totalTargetCapacity;
@Query
@NameInMap("ValidFrom")
private String validFrom;
@Query
@NameInMap("ValidUntil")
private String validUntil;
private CreateAutoProvisioningGroupRequest(Builder builder) {
super(builder);
this.launchConfiguration = builder.launchConfiguration;
this.autoProvisioningGroupName = builder.autoProvisioningGroupName;
this.autoProvisioningGroupType = builder.autoProvisioningGroupType;
this.clientToken = builder.clientToken;
this.dataDiskConfig = builder.dataDiskConfig;
this.defaultTargetCapacityType = builder.defaultTargetCapacityType;
this.description = builder.description;
this.excessCapacityTerminationPolicy = builder.excessCapacityTerminationPolicy;
this.hibernationOptionsConfigured = builder.hibernationOptionsConfigured;
this.launchTemplateConfig = builder.launchTemplateConfig;
this.launchTemplateId = builder.launchTemplateId;
this.launchTemplateVersion = builder.launchTemplateVersion;
this.maxSpotPrice = builder.maxSpotPrice;
this.minTargetCapacity = builder.minTargetCapacity;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.payAsYouGoAllocationStrategy = builder.payAsYouGoAllocationStrategy;
this.payAsYouGoTargetCapacity = builder.payAsYouGoTargetCapacity;
this.regionId = builder.regionId;
this.resourceGroupId = builder.resourceGroupId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.spotAllocationStrategy = builder.spotAllocationStrategy;
this.spotInstanceInterruptionBehavior = builder.spotInstanceInterruptionBehavior;
this.spotInstancePoolsToUseCount = builder.spotInstancePoolsToUseCount;
this.spotTargetCapacity = builder.spotTargetCapacity;
this.systemDiskConfig = builder.systemDiskConfig;
this.terminateInstances = builder.terminateInstances;
this.terminateInstancesWithExpiration = builder.terminateInstancesWithExpiration;
this.totalTargetCapacity = builder.totalTargetCapacity;
this.validFrom = builder.validFrom;
this.validUntil = builder.validUntil;
}
public static Builder builder() {
return new Builder();
}
public static CreateAutoProvisioningGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return launchConfiguration
*/
public LaunchConfiguration getLaunchConfiguration() {
return this.launchConfiguration;
}
/**
* @return autoProvisioningGroupName
*/
public String getAutoProvisioningGroupName() {
return this.autoProvisioningGroupName;
}
/**
* @return autoProvisioningGroupType
*/
public String getAutoProvisioningGroupType() {
return this.autoProvisioningGroupType;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return dataDiskConfig
*/
public java.util.List < DataDiskConfig> getDataDiskConfig() {
return this.dataDiskConfig;
}
/**
* @return defaultTargetCapacityType
*/
public String getDefaultTargetCapacityType() {
return this.defaultTargetCapacityType;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return excessCapacityTerminationPolicy
*/
public String getExcessCapacityTerminationPolicy() {
return this.excessCapacityTerminationPolicy;
}
/**
* @return hibernationOptionsConfigured
*/
public Boolean getHibernationOptionsConfigured() {
return this.hibernationOptionsConfigured;
}
/**
* @return launchTemplateConfig
*/
public java.util.List < LaunchTemplateConfig> getLaunchTemplateConfig() {
return this.launchTemplateConfig;
}
/**
* @return launchTemplateId
*/
public String getLaunchTemplateId() {
return this.launchTemplateId;
}
/**
* @return launchTemplateVersion
*/
public String getLaunchTemplateVersion() {
return this.launchTemplateVersion;
}
/**
* @return maxSpotPrice
*/
public Float getMaxSpotPrice() {
return this.maxSpotPrice;
}
/**
* @return minTargetCapacity
*/
public String getMinTargetCapacity() {
return this.minTargetCapacity;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return payAsYouGoAllocationStrategy
*/
public String getPayAsYouGoAllocationStrategy() {
return this.payAsYouGoAllocationStrategy;
}
/**
* @return payAsYouGoTargetCapacity
*/
public String getPayAsYouGoTargetCapacity() {
return this.payAsYouGoTargetCapacity;
}
/**
* @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 spotAllocationStrategy
*/
public String getSpotAllocationStrategy() {
return this.spotAllocationStrategy;
}
/**
* @return spotInstanceInterruptionBehavior
*/
public String getSpotInstanceInterruptionBehavior() {
return this.spotInstanceInterruptionBehavior;
}
/**
* @return spotInstancePoolsToUseCount
*/
public Integer getSpotInstancePoolsToUseCount() {
return this.spotInstancePoolsToUseCount;
}
/**
* @return spotTargetCapacity
*/
public String getSpotTargetCapacity() {
return this.spotTargetCapacity;
}
/**
* @return systemDiskConfig
*/
public java.util.List < SystemDiskConfig> getSystemDiskConfig() {
return this.systemDiskConfig;
}
/**
* @return terminateInstances
*/
public Boolean getTerminateInstances() {
return this.terminateInstances;
}
/**
* @return terminateInstancesWithExpiration
*/
public Boolean getTerminateInstancesWithExpiration() {
return this.terminateInstancesWithExpiration;
}
/**
* @return totalTargetCapacity
*/
public String getTotalTargetCapacity() {
return this.totalTargetCapacity;
}
/**
* @return validFrom
*/
public String getValidFrom() {
return this.validFrom;
}
/**
* @return validUntil
*/
public String getValidUntil() {
return this.validUntil;
}
public static final class Builder extends Request.Builder {
private LaunchConfiguration launchConfiguration;
private String autoProvisioningGroupName;
private String autoProvisioningGroupType;
private String clientToken;
private java.util.List < DataDiskConfig> dataDiskConfig;
private String defaultTargetCapacityType;
private String description;
private String excessCapacityTerminationPolicy;
private Boolean hibernationOptionsConfigured;
private java.util.List < LaunchTemplateConfig> launchTemplateConfig;
private String launchTemplateId;
private String launchTemplateVersion;
private Float maxSpotPrice;
private String minTargetCapacity;
private String ownerAccount;
private Long ownerId;
private String payAsYouGoAllocationStrategy;
private String payAsYouGoTargetCapacity;
private String regionId;
private String resourceGroupId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String spotAllocationStrategy;
private String spotInstanceInterruptionBehavior;
private Integer spotInstancePoolsToUseCount;
private String spotTargetCapacity;
private java.util.List < SystemDiskConfig> systemDiskConfig;
private Boolean terminateInstances;
private Boolean terminateInstancesWithExpiration;
private String totalTargetCapacity;
private String validFrom;
private String validUntil;
private Builder() {
super();
}
private Builder(CreateAutoProvisioningGroupRequest request) {
super(request);
this.launchConfiguration = request.launchConfiguration;
this.autoProvisioningGroupName = request.autoProvisioningGroupName;
this.autoProvisioningGroupType = request.autoProvisioningGroupType;
this.clientToken = request.clientToken;
this.dataDiskConfig = request.dataDiskConfig;
this.defaultTargetCapacityType = request.defaultTargetCapacityType;
this.description = request.description;
this.excessCapacityTerminationPolicy = request.excessCapacityTerminationPolicy;
this.hibernationOptionsConfigured = request.hibernationOptionsConfigured;
this.launchTemplateConfig = request.launchTemplateConfig;
this.launchTemplateId = request.launchTemplateId;
this.launchTemplateVersion = request.launchTemplateVersion;
this.maxSpotPrice = request.maxSpotPrice;
this.minTargetCapacity = request.minTargetCapacity;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.payAsYouGoAllocationStrategy = request.payAsYouGoAllocationStrategy;
this.payAsYouGoTargetCapacity = request.payAsYouGoTargetCapacity;
this.regionId = request.regionId;
this.resourceGroupId = request.resourceGroupId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.spotAllocationStrategy = request.spotAllocationStrategy;
this.spotInstanceInterruptionBehavior = request.spotInstanceInterruptionBehavior;
this.spotInstancePoolsToUseCount = request.spotInstancePoolsToUseCount;
this.spotTargetCapacity = request.spotTargetCapacity;
this.systemDiskConfig = request.systemDiskConfig;
this.terminateInstances = request.terminateInstances;
this.terminateInstancesWithExpiration = request.terminateInstancesWithExpiration;
this.totalTargetCapacity = request.totalTargetCapacity;
this.validFrom = request.validFrom;
this.validUntil = request.validUntil;
}
/**
* LaunchConfiguration.
*/
public Builder launchConfiguration(LaunchConfiguration launchConfiguration) {
this.putQueryParameter("LaunchConfiguration", launchConfiguration);
this.launchConfiguration = launchConfiguration;
return this;
}
/**
* AutoProvisioningGroupName.
*/
public Builder autoProvisioningGroupName(String autoProvisioningGroupName) {
this.putQueryParameter("AutoProvisioningGroupName", autoProvisioningGroupName);
this.autoProvisioningGroupName = autoProvisioningGroupName;
return this;
}
/**
* AutoProvisioningGroupType.
*/
public Builder autoProvisioningGroupType(String autoProvisioningGroupType) {
this.putQueryParameter("AutoProvisioningGroupType", autoProvisioningGroupType);
this.autoProvisioningGroupType = autoProvisioningGroupType;
return this;
}
/**
* ClientToken.
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* DataDiskConfig.
*/
public Builder dataDiskConfig(java.util.List < DataDiskConfig> dataDiskConfig) {
this.putQueryParameter("DataDiskConfig", dataDiskConfig);
this.dataDiskConfig = dataDiskConfig;
return this;
}
/**
* DefaultTargetCapacityType.
*/
public Builder defaultTargetCapacityType(String defaultTargetCapacityType) {
this.putQueryParameter("DefaultTargetCapacityType", defaultTargetCapacityType);
this.defaultTargetCapacityType = defaultTargetCapacityType;
return this;
}
/**
* Description.
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* ExcessCapacityTerminationPolicy.
*/
public Builder excessCapacityTerminationPolicy(String excessCapacityTerminationPolicy) {
this.putQueryParameter("ExcessCapacityTerminationPolicy", excessCapacityTerminationPolicy);
this.excessCapacityTerminationPolicy = excessCapacityTerminationPolicy;
return this;
}
/**
* HibernationOptionsConfigured.
*/
public Builder hibernationOptionsConfigured(Boolean hibernationOptionsConfigured) {
this.putQueryParameter("HibernationOptionsConfigured", hibernationOptionsConfigured);
this.hibernationOptionsConfigured = hibernationOptionsConfigured;
return this;
}
/**
* LaunchTemplateConfig.
*/
public Builder launchTemplateConfig(java.util.List < LaunchTemplateConfig> launchTemplateConfig) {
this.putQueryParameter("LaunchTemplateConfig", launchTemplateConfig);
this.launchTemplateConfig = launchTemplateConfig;
return this;
}
/**
* LaunchTemplateId.
*/
public Builder launchTemplateId(String launchTemplateId) {
this.putQueryParameter("LaunchTemplateId", launchTemplateId);
this.launchTemplateId = launchTemplateId;
return this;
}
/**
* LaunchTemplateVersion.
*/
public Builder launchTemplateVersion(String launchTemplateVersion) {
this.putQueryParameter("LaunchTemplateVersion", launchTemplateVersion);
this.launchTemplateVersion = launchTemplateVersion;
return this;
}
/**
* MaxSpotPrice.
*/
public Builder maxSpotPrice(Float maxSpotPrice) {
this.putQueryParameter("MaxSpotPrice", maxSpotPrice);
this.maxSpotPrice = maxSpotPrice;
return this;
}
/**
* MinTargetCapacity.
*/
public Builder minTargetCapacity(String minTargetCapacity) {
this.putQueryParameter("MinTargetCapacity", minTargetCapacity);
this.minTargetCapacity = minTargetCapacity;
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;
}
/**
* PayAsYouGoAllocationStrategy.
*/
public Builder payAsYouGoAllocationStrategy(String payAsYouGoAllocationStrategy) {
this.putQueryParameter("PayAsYouGoAllocationStrategy", payAsYouGoAllocationStrategy);
this.payAsYouGoAllocationStrategy = payAsYouGoAllocationStrategy;
return this;
}
/**
* PayAsYouGoTargetCapacity.
*/
public Builder payAsYouGoTargetCapacity(String payAsYouGoTargetCapacity) {
this.putQueryParameter("PayAsYouGoTargetCapacity", payAsYouGoTargetCapacity);
this.payAsYouGoTargetCapacity = payAsYouGoTargetCapacity;
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;
}
/**
* SpotAllocationStrategy.
*/
public Builder spotAllocationStrategy(String spotAllocationStrategy) {
this.putQueryParameter("SpotAllocationStrategy", spotAllocationStrategy);
this.spotAllocationStrategy = spotAllocationStrategy;
return this;
}
/**
* SpotInstanceInterruptionBehavior.
*/
public Builder spotInstanceInterruptionBehavior(String spotInstanceInterruptionBehavior) {
this.putQueryParameter("SpotInstanceInterruptionBehavior", spotInstanceInterruptionBehavior);
this.spotInstanceInterruptionBehavior = spotInstanceInterruptionBehavior;
return this;
}
/**
* SpotInstancePoolsToUseCount.
*/
public Builder spotInstancePoolsToUseCount(Integer spotInstancePoolsToUseCount) {
this.putQueryParameter("SpotInstancePoolsToUseCount", spotInstancePoolsToUseCount);
this.spotInstancePoolsToUseCount = spotInstancePoolsToUseCount;
return this;
}
/**
* SpotTargetCapacity.
*/
public Builder spotTargetCapacity(String spotTargetCapacity) {
this.putQueryParameter("SpotTargetCapacity", spotTargetCapacity);
this.spotTargetCapacity = spotTargetCapacity;
return this;
}
/**
* SystemDiskConfig.
*/
public Builder systemDiskConfig(java.util.List < SystemDiskConfig> systemDiskConfig) {
this.putQueryParameter("SystemDiskConfig", systemDiskConfig);
this.systemDiskConfig = systemDiskConfig;
return this;
}
/**
* TerminateInstances.
*/
public Builder terminateInstances(Boolean terminateInstances) {
this.putQueryParameter("TerminateInstances", terminateInstances);
this.terminateInstances = terminateInstances;
return this;
}
/**
* TerminateInstancesWithExpiration.
*/
public Builder terminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration) {
this.putQueryParameter("TerminateInstancesWithExpiration", terminateInstancesWithExpiration);
this.terminateInstancesWithExpiration = terminateInstancesWithExpiration;
return this;
}
/**
* TotalTargetCapacity.
*/
public Builder totalTargetCapacity(String totalTargetCapacity) {
this.putQueryParameter("TotalTargetCapacity", totalTargetCapacity);
this.totalTargetCapacity = totalTargetCapacity;
return this;
}
/**
* ValidFrom.
*/
public Builder validFrom(String validFrom) {
this.putQueryParameter("ValidFrom", validFrom);
this.validFrom = validFrom;
return this;
}
/**
* ValidUntil.
*/
public Builder validUntil(String validUntil) {
this.putQueryParameter("ValidUntil", validUntil);
this.validUntil = validUntil;
return this;
}
@Override
public CreateAutoProvisioningGroupRequest build() {
return new CreateAutoProvisioningGroupRequest(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("Encrypted")
private Boolean encrypted;
@NameInMap("KmsKeyId")
private String kmsKeyId;
@NameInMap("PerformanceLevel")
private String performanceLevel;
@NameInMap("Size")
private Integer size;
@NameInMap("SnapshotId")
private String snapshotId;
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.encrypted = builder.encrypted;
this.kmsKeyId = builder.kmsKeyId;
this.performanceLevel = builder.performanceLevel;
this.size = builder.size;
this.snapshotId = builder.snapshotId;
}
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 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;
}
public static final class Builder {
private String category;
private Boolean deleteWithInstance;
private String description;
private String device;
private String diskName;
private Boolean encrypted;
private String kmsKeyId;
private String performanceLevel;
private Integer size;
private String snapshotId;
/**
* 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;
}
/**
* 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;
}
public DataDisk build() {
return new DataDisk(this);
}
}
}
public static class SystemDisk extends TeaModel {
@NameInMap("EncryptAlgorithm")
private String encryptAlgorithm;
@NameInMap("Encrypted")
private String encrypted;
@NameInMap("KMSKeyId")
private String KMSKeyId;
private SystemDisk(Builder builder) {
this.encryptAlgorithm = builder.encryptAlgorithm;
this.encrypted = builder.encrypted;
this.KMSKeyId = builder.KMSKeyId;
}
public static Builder builder() {
return new Builder();
}
public static SystemDisk create() {
return builder().build();
}
/**
* @return encryptAlgorithm
*/
public String getEncryptAlgorithm() {
return this.encryptAlgorithm;
}
/**
* @return encrypted
*/
public String getEncrypted() {
return this.encrypted;
}
/**
* @return KMSKeyId
*/
public String getKMSKeyId() {
return this.KMSKeyId;
}
public static final class Builder {
private String encryptAlgorithm;
private String encrypted;
private String KMSKeyId;
/**
* 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;
}
public SystemDisk build() {
return new SystemDisk(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);
}
}
}
public static class LaunchConfiguration extends TeaModel {
@NameInMap("Arn")
private java.util.List < Arn> arn;
@NameInMap("CreditSpecification")
private String creditSpecification;
@NameInMap("DataDisk")
private java.util.List < DataDisk> dataDisk;
@NameInMap("DeploymentSetId")
private String deploymentSetId;
@NameInMap("HostName")
private String hostName;
@NameInMap("HostNames")
private java.util.List < String > hostNames;
@NameInMap("ImageId")
private String imageId;
@NameInMap("InstanceDescription")
private String instanceDescription;
@NameInMap("InstanceName")
private String instanceName;
@NameInMap("InternetChargeType")
private String internetChargeType;
@NameInMap("InternetMaxBandwidthIn")
private Integer internetMaxBandwidthIn;
@NameInMap("InternetMaxBandwidthOut")
private Integer internetMaxBandwidthOut;
@NameInMap("IoOptimized")
private String ioOptimized;
@NameInMap("KeyPairName")
private String keyPairName;
@NameInMap("Password")
private String password;
@NameInMap("PasswordInherit")
private Boolean passwordInherit;
@NameInMap("RamRoleName")
private String ramRoleName;
@NameInMap("ResourceGroupId")
private String resourceGroupId;
@NameInMap("SecurityEnhancementStrategy")
private String securityEnhancementStrategy;
@NameInMap("SecurityGroupId")
private String securityGroupId;
@NameInMap("SecurityGroupIds")
private java.util.List < String > securityGroupIds;
@NameInMap("SystemDisk")
private SystemDisk systemDisk;
@NameInMap("SystemDiskCategory")
private String systemDiskCategory;
@NameInMap("SystemDiskDescription")
private String systemDiskDescription;
@NameInMap("SystemDiskName")
private String systemDiskName;
@NameInMap("SystemDiskPerformanceLevel")
private String systemDiskPerformanceLevel;
@NameInMap("SystemDiskSize")
private Integer systemDiskSize;
@NameInMap("Tag")
private java.util.List < Tag> tag;
@NameInMap("UserData")
private String userData;
private LaunchConfiguration(Builder builder) {
this.arn = builder.arn;
this.creditSpecification = builder.creditSpecification;
this.dataDisk = builder.dataDisk;
this.deploymentSetId = builder.deploymentSetId;
this.hostName = builder.hostName;
this.hostNames = builder.hostNames;
this.imageId = builder.imageId;
this.instanceDescription = builder.instanceDescription;
this.instanceName = builder.instanceName;
this.internetChargeType = builder.internetChargeType;
this.internetMaxBandwidthIn = builder.internetMaxBandwidthIn;
this.internetMaxBandwidthOut = builder.internetMaxBandwidthOut;
this.ioOptimized = builder.ioOptimized;
this.keyPairName = builder.keyPairName;
this.password = builder.password;
this.passwordInherit = builder.passwordInherit;
this.ramRoleName = builder.ramRoleName;
this.resourceGroupId = builder.resourceGroupId;
this.securityEnhancementStrategy = builder.securityEnhancementStrategy;
this.securityGroupId = builder.securityGroupId;
this.securityGroupIds = builder.securityGroupIds;
this.systemDisk = builder.systemDisk;
this.systemDiskCategory = builder.systemDiskCategory;
this.systemDiskDescription = builder.systemDiskDescription;
this.systemDiskName = builder.systemDiskName;
this.systemDiskPerformanceLevel = builder.systemDiskPerformanceLevel;
this.systemDiskSize = builder.systemDiskSize;
this.tag = builder.tag;
this.userData = builder.userData;
}
public static Builder builder() {
return new Builder();
}
public static LaunchConfiguration create() {
return builder().build();
}
/**
* @return arn
*/
public java.util.List < Arn> getArn() {
return this.arn;
}
/**
* @return creditSpecification
*/
public String getCreditSpecification() {
return this.creditSpecification;
}
/**
* @return dataDisk
*/
public java.util.List < DataDisk> getDataDisk() {
return this.dataDisk;
}
/**
* @return deploymentSetId
*/
public String getDeploymentSetId() {
return this.deploymentSetId;
}
/**
* @return hostName
*/
public String getHostName() {
return this.hostName;
}
/**
* @return hostNames
*/
public java.util.List < String > getHostNames() {
return this.hostNames;
}
/**
* @return imageId
*/
public String getImageId() {
return this.imageId;
}
/**
* @return instanceDescription
*/
public String getInstanceDescription() {
return this.instanceDescription;
}
/**
* @return instanceName
*/
public String getInstanceName() {
return this.instanceName;
}
/**
* @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 password
*/
public String getPassword() {
return this.password;
}
/**
* @return passwordInherit
*/
public Boolean getPasswordInherit() {
return this.passwordInherit;
}
/**
* @return ramRoleName
*/
public String getRamRoleName() {
return this.ramRoleName;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @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 systemDisk
*/
public SystemDisk getSystemDisk() {
return this.systemDisk;
}
/**
* @return systemDiskCategory
*/
public String getSystemDiskCategory() {
return this.systemDiskCategory;
}
/**
* @return systemDiskDescription
*/
public String getSystemDiskDescription() {
return this.systemDiskDescription;
}
/**
* @return systemDiskName
*/
public String getSystemDiskName() {
return this.systemDiskName;
}
/**
* @return systemDiskPerformanceLevel
*/
public String getSystemDiskPerformanceLevel() {
return this.systemDiskPerformanceLevel;
}
/**
* @return systemDiskSize
*/
public Integer getSystemDiskSize() {
return this.systemDiskSize;
}
/**
* @return tag
*/
public java.util.List < Tag> getTag() {
return this.tag;
}
/**
* @return userData
*/
public String getUserData() {
return this.userData;
}
public static final class Builder {
private java.util.List < Arn> arn;
private String creditSpecification;
private java.util.List < DataDisk> dataDisk;
private String deploymentSetId;
private String hostName;
private java.util.List < String > hostNames;
private String imageId;
private String instanceDescription;
private String instanceName;
private String internetChargeType;
private Integer internetMaxBandwidthIn;
private Integer internetMaxBandwidthOut;
private String ioOptimized;
private String keyPairName;
private String password;
private Boolean passwordInherit;
private String ramRoleName;
private String resourceGroupId;
private String securityEnhancementStrategy;
private String securityGroupId;
private java.util.List < String > securityGroupIds;
private SystemDisk systemDisk;
private String systemDiskCategory;
private String systemDiskDescription;
private String systemDiskName;
private String systemDiskPerformanceLevel;
private Integer systemDiskSize;
private java.util.List < Tag> tag;
private String userData;
/**
* Arn.
*/
public Builder arn(java.util.List < Arn> arn) {
this.arn = arn;
return this;
}
/**
* CreditSpecification.
*/
public Builder creditSpecification(String creditSpecification) {
this.creditSpecification = creditSpecification;
return this;
}
/**
* DataDisk.
*/
public Builder dataDisk(java.util.List < DataDisk> dataDisk) {
this.dataDisk = dataDisk;
return this;
}
/**
* DeploymentSetId.
*/
public Builder deploymentSetId(String deploymentSetId) {
this.deploymentSetId = deploymentSetId;
return this;
}
/**
* HostName.
*/
public Builder hostName(String hostName) {
this.hostName = hostName;
return this;
}
/**
* HostNames.
*/
public Builder hostNames(java.util.List < String > hostNames) {
this.hostNames = hostNames;
return this;
}
/**
* ImageId.
*/
public Builder imageId(String imageId) {
this.imageId = imageId;
return this;
}
/**
* InstanceDescription.
*/
public Builder instanceDescription(String instanceDescription) {
this.instanceDescription = instanceDescription;
return this;
}
/**
* InstanceName.
*/
public Builder instanceName(String instanceName) {
this.instanceName = instanceName;
return this;
}
/**
* InternetChargeType.
*/
public Builder internetChargeType(String internetChargeType) {
this.internetChargeType = internetChargeType;
return this;
}
/**
* InternetMaxBandwidthIn.
*/
public Builder internetMaxBandwidthIn(Integer internetMaxBandwidthIn) {
this.internetMaxBandwidthIn = internetMaxBandwidthIn;
return this;
}
/**
* InternetMaxBandwidthOut.
*/
public Builder internetMaxBandwidthOut(Integer internetMaxBandwidthOut) {
this.internetMaxBandwidthOut = internetMaxBandwidthOut;
return this;
}
/**
* IoOptimized.
*/
public Builder ioOptimized(String ioOptimized) {
this.ioOptimized = ioOptimized;
return this;
}
/**
* KeyPairName.
*/
public Builder keyPairName(String keyPairName) {
this.keyPairName = keyPairName;
return this;
}
/**
* Password.
*/
public Builder password(String password) {
this.password = password;
return this;
}
/**
* PasswordInherit.
*/
public Builder passwordInherit(Boolean passwordInherit) {
this.passwordInherit = passwordInherit;
return this;
}
/**
* RamRoleName.
*/
public Builder ramRoleName(String ramRoleName) {
this.ramRoleName = ramRoleName;
return this;
}
/**
* ResourceGroupId.
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* SecurityEnhancementStrategy.
*/
public Builder securityEnhancementStrategy(String securityEnhancementStrategy) {
this.securityEnhancementStrategy = securityEnhancementStrategy;
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;
}
/**
* SystemDisk.
*/
public Builder systemDisk(SystemDisk systemDisk) {
this.systemDisk = systemDisk;
return this;
}
/**
* SystemDiskCategory.
*/
public Builder systemDiskCategory(String systemDiskCategory) {
this.systemDiskCategory = systemDiskCategory;
return this;
}
/**
* SystemDiskDescription.
*/
public Builder systemDiskDescription(String systemDiskDescription) {
this.systemDiskDescription = systemDiskDescription;
return this;
}
/**
* SystemDiskName.
*/
public Builder systemDiskName(String systemDiskName) {
this.systemDiskName = systemDiskName;
return this;
}
/**
* SystemDiskPerformanceLevel.
*/
public Builder systemDiskPerformanceLevel(String systemDiskPerformanceLevel) {
this.systemDiskPerformanceLevel = systemDiskPerformanceLevel;
return this;
}
/**
* SystemDiskSize.
*/
public Builder systemDiskSize(Integer systemDiskSize) {
this.systemDiskSize = systemDiskSize;
return this;
}
/**
* Tag.
*/
public Builder tag(java.util.List < Tag> tag) {
this.tag = tag;
return this;
}
/**
* UserData.
*/
public Builder userData(String userData) {
this.userData = userData;
return this;
}
public LaunchConfiguration build() {
return new LaunchConfiguration(this);
}
}
}
public static class DataDiskConfig extends TeaModel {
@NameInMap("DiskCategory")
private String diskCategory;
private DataDiskConfig(Builder builder) {
this.diskCategory = builder.diskCategory;
}
public static Builder builder() {
return new Builder();
}
public static DataDiskConfig create() {
return builder().build();
}
/**
* @return diskCategory
*/
public String getDiskCategory() {
return this.diskCategory;
}
public static final class Builder {
private String diskCategory;
/**
* DiskCategory.
*/
public Builder diskCategory(String diskCategory) {
this.diskCategory = diskCategory;
return this;
}
public DataDiskConfig build() {
return new DataDiskConfig(this);
}
}
}
public static class LaunchTemplateConfig extends TeaModel {
@NameInMap("InstanceType")
private String instanceType;
@NameInMap("MaxPrice")
private Double maxPrice;
@NameInMap("Priority")
private Integer priority;
@NameInMap("VSwitchId")
private String vSwitchId;
@NameInMap("WeightedCapacity")
private Double weightedCapacity;
private LaunchTemplateConfig(Builder builder) {
this.instanceType = builder.instanceType;
this.maxPrice = builder.maxPrice;
this.priority = builder.priority;
this.vSwitchId = builder.vSwitchId;
this.weightedCapacity = builder.weightedCapacity;
}
public static Builder builder() {
return new Builder();
}
public static LaunchTemplateConfig create() {
return builder().build();
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
/**
* @return maxPrice
*/
public Double getMaxPrice() {
return this.maxPrice;
}
/**
* @return priority
*/
public Integer getPriority() {
return this.priority;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
/**
* @return weightedCapacity
*/
public Double getWeightedCapacity() {
return this.weightedCapacity;
}
public static final class Builder {
private String instanceType;
private Double maxPrice;
private Integer priority;
private String vSwitchId;
private Double weightedCapacity;
/**
* InstanceType.
*/
public Builder instanceType(String instanceType) {
this.instanceType = instanceType;
return this;
}
/**
* MaxPrice.
*/
public Builder maxPrice(Double maxPrice) {
this.maxPrice = maxPrice;
return this;
}
/**
* Priority.
*/
public Builder priority(Integer priority) {
this.priority = priority;
return this;
}
/**
* VSwitchId.
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* WeightedCapacity.
*/
public Builder weightedCapacity(Double weightedCapacity) {
this.weightedCapacity = weightedCapacity;
return this;
}
public LaunchTemplateConfig build() {
return new LaunchTemplateConfig(this);
}
}
}
public static class SystemDiskConfig extends TeaModel {
@NameInMap("DiskCategory")
private String diskCategory;
private SystemDiskConfig(Builder builder) {
this.diskCategory = builder.diskCategory;
}
public static Builder builder() {
return new Builder();
}
public static SystemDiskConfig create() {
return builder().build();
}
/**
* @return diskCategory
*/
public String getDiskCategory() {
return this.diskCategory;
}
public static final class Builder {
private String diskCategory;
/**
* DiskCategory.
*/
public Builder diskCategory(String diskCategory) {
this.diskCategory = diskCategory;
return this;
}
public SystemDiskConfig build() {
return new SystemDiskConfig(this);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy