public class CreateResourceRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CreateResourceRequest.CreateResourceRequestSelfManagedResourceOptions |
static class |
CreateResourceRequest.CreateResourceRequestSelfManagedResourceOptionsNodeTolerations |
| 限定符和类型 | 字段和说明 |
|---|---|
Boolean |
autoRenewal
Specifies whether to enable auto-renewal.
|
String |
chargeType
The billing method.
|
Integer |
ecsInstanceCount
The number of ECS instances.
|
String |
ecsInstanceType
The type of the Elastic Compute Service (ECS) instance.
|
String |
resourceType
The type of the resource group.
|
CreateResourceRequest.CreateResourceRequestSelfManagedResourceOptions |
selfManagedResourceOptions
The configurations of the self-managed resource group.
|
Integer |
systemDiskSize
The size of the system disk.
|
String |
zone
The ID of the zone in which the instance resides.
|
| 构造器和说明 |
|---|
CreateResourceRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CreateResourceRequest |
build(Map<String,?> map) |
Boolean |
getAutoRenewal() |
String |
getChargeType() |
Integer |
getEcsInstanceCount() |
String |
getEcsInstanceType() |
String |
getResourceType() |
CreateResourceRequest.CreateResourceRequestSelfManagedResourceOptions |
getSelfManagedResourceOptions() |
Integer |
getSystemDiskSize() |
String |
getZone() |
CreateResourceRequest |
setAutoRenewal(Boolean autoRenewal) |
CreateResourceRequest |
setChargeType(String chargeType) |
CreateResourceRequest |
setEcsInstanceCount(Integer ecsInstanceCount) |
CreateResourceRequest |
setEcsInstanceType(String ecsInstanceType) |
CreateResourceRequest |
setResourceType(String resourceType) |
CreateResourceRequest |
setSelfManagedResourceOptions(CreateResourceRequest.CreateResourceRequestSelfManagedResourceOptions selfManagedResourceOptions) |
CreateResourceRequest |
setSystemDiskSize(Integer systemDiskSize) |
CreateResourceRequest |
setZone(String zone) |
@NameInMap(value="AutoRenewal") public Boolean autoRenewal
Specifies whether to enable auto-renewal. Valid values:
false
@NameInMap(value="ChargeType") public String chargeType
The billing method. Valid values:
example:This parameter is required when the ResourceType parameter is set to Dedicated.
PostPaid
@NameInMap(value="EcsInstanceCount") public Integer ecsInstanceCount
The number of ECS instances.
example:This parameter is required when the ResourceType parameter is set to Dedicated.
5
@NameInMap(value="EcsInstanceType") public String ecsInstanceType
The type of the Elastic Compute Service (ECS) instance.
example:This parameter is required when the ResourceType parameter is set to Dedicated.
ecs.c6.8xlarge
@NameInMap(value="ResourceType") public String resourceType
The type of the resource group. Valid values:
example:If you use a self-managed resource group, you must configure a whitelist.
Dedicated
@NameInMap(value="SelfManagedResourceOptions") public CreateResourceRequest.CreateResourceRequestSelfManagedResourceOptions selfManagedResourceOptions
The configurations of the self-managed resource group.
@NameInMap(value="SystemDiskSize") public Integer systemDiskSize
The size of the system disk. Unit: GiB. Valid values: 200 to 2000. Default value: 200.
example:200
@NameInMap(value="Zone") public String zone
The ID of the zone in which the instance resides.
example:cn-shanghai-f
public static CreateResourceRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateResourceRequest setAutoRenewal(Boolean autoRenewal)
public Boolean getAutoRenewal()
public CreateResourceRequest setChargeType(String chargeType)
public String getChargeType()
public CreateResourceRequest setEcsInstanceCount(Integer ecsInstanceCount)
public Integer getEcsInstanceCount()
public CreateResourceRequest setEcsInstanceType(String ecsInstanceType)
public String getEcsInstanceType()
public CreateResourceRequest setResourceType(String resourceType)
public String getResourceType()
public CreateResourceRequest setSelfManagedResourceOptions(CreateResourceRequest.CreateResourceRequestSelfManagedResourceOptions selfManagedResourceOptions)
public CreateResourceRequest.CreateResourceRequestSelfManagedResourceOptions getSelfManagedResourceOptions()
public CreateResourceRequest setSystemDiskSize(Integer systemDiskSize)
public Integer getSystemDiskSize()
public CreateResourceRequest setZone(String zone)
public String getZone()
Copyright © 2024. All rights reserved.