public class ModifyAutoProvisioningGroupRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
ModifyAutoProvisioningGroupRequest.ModifyAutoProvisioningGroupRequestLaunchTemplateConfig |
限定符和类型 | 字段和说明 |
---|---|
String |
autoProvisioningGroupId
The auto-provisioning group ID.
|
String |
autoProvisioningGroupName
The name of the auto-provisioning group.
|
String |
defaultTargetCapacityType
The type of supplemental instances.
|
String |
excessCapacityTerminationPolicy
Specifies whether to release the removed instances when the real-time capacity of the auto-provisioning group exceeds the target capacity and a scale-in event is triggered.
|
List<ModifyAutoProvisioningGroupRequest.ModifyAutoProvisioningGroupRequestLaunchTemplateConfig> |
launchTemplateConfig
The extended configurations of the launch template.
|
Float |
maxSpotPrice
The maximum price of preemptible instances in the auto-provisioning group.
|
String |
ownerAccount |
Long |
ownerId |
String |
payAsYouGoTargetCapacity
The target capacity of pay-as-you-go instances in the auto-provisioning group.
|
String |
regionId
The region ID of the auto-provisioning group.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
spotTargetCapacity
The target capacity of preemptible instances in the auto-provisioning group.
|
Boolean |
terminateInstancesWithExpiration
Specifies whether to release instances that are located in the auto-provisioning group after the group expires.
|
String |
totalTargetCapacity
The total target capacity of the auto-provisioning group.
|
构造器和说明 |
---|
ModifyAutoProvisioningGroupRequest() |
@NameInMap(value="AutoProvisioningGroupId") public String autoProvisioningGroupId
The auto-provisioning group ID.
example:apg-bp67acfmxazb4ph****
@NameInMap(value="AutoProvisioningGroupName") public String autoProvisioningGroupName
The name of the auto-provisioning group. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
example:apg-test
@NameInMap(value="DefaultTargetCapacityType") public String defaultTargetCapacityType
The type of supplemental instances. When the sum of the PayAsYouGoTargetCapacity and SpotTargetCapacity values is smaller than the TotalTargetCapacity value, the auto-provisioning group creates instances of the specified type to meet the target capacity. Valid values:
Spot
@NameInMap(value="ExcessCapacityTerminationPolicy") public String excessCapacityTerminationPolicy
Specifies whether to release the removed instances when the real-time capacity of the auto-provisioning group exceeds the target capacity and a scale-in event is triggered. Valid values:
no-termination
@NameInMap(value="LaunchTemplateConfig") public List<ModifyAutoProvisioningGroupRequest.ModifyAutoProvisioningGroupRequestLaunchTemplateConfig> launchTemplateConfig
The extended configurations of the launch template.
@NameInMap(value="MaxSpotPrice") public Float maxSpotPrice
The maximum price of preemptible instances in the auto-provisioning group.
example:When both the MaxSpotPrice and LaunchTemplateConfig.N.MaxPrice parameters are specified, the smaller one of the two parameter values is used. The LaunchTemplateConfig.N.MaxPrice parameter is specified when the auto-provisioning group is created, and cannot be modified.
0.5
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="PayAsYouGoTargetCapacity") public String payAsYouGoTargetCapacity
The target capacity of pay-as-you-go instances in the auto-provisioning group. Valid values: Set this parameter to a value smaller than the TotalTargetCapacity value.
example:30
@NameInMap(value="RegionId") public String regionId
The region ID of the auto-provisioning group. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="SpotTargetCapacity") public String spotTargetCapacity
The target capacity of preemptible instances in the auto-provisioning group. Valid values: Set this parameter to a value smaller than the TotalTargetCapacity value.
example:30
@NameInMap(value="TerminateInstancesWithExpiration") public Boolean terminateInstancesWithExpiration
Specifies whether to release instances that are located in the auto-provisioning group after the group expires. Valid values:
false
@NameInMap(value="TotalTargetCapacity") public String totalTargetCapacity
The total target capacity of the auto-provisioning group. The value must be a positive integer.
The total target capacity of the auto-provisioning group must be greater than or equal to the sum of the target capacity of pay-as-you-go instances specified by the PayAsYouGoTargetCapacity parameter as well as the target capacity of preemptible instances specified by the SpotTargetCapacity parameter.
example:70
public static ModifyAutoProvisioningGroupRequest build(Map<String,?> map) throws Exception
Exception
public ModifyAutoProvisioningGroupRequest setAutoProvisioningGroupId(String autoProvisioningGroupId)
public String getAutoProvisioningGroupId()
public ModifyAutoProvisioningGroupRequest setAutoProvisioningGroupName(String autoProvisioningGroupName)
public String getAutoProvisioningGroupName()
public ModifyAutoProvisioningGroupRequest setDefaultTargetCapacityType(String defaultTargetCapacityType)
public String getDefaultTargetCapacityType()
public ModifyAutoProvisioningGroupRequest setExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
public String getExcessCapacityTerminationPolicy()
public ModifyAutoProvisioningGroupRequest setLaunchTemplateConfig(List<ModifyAutoProvisioningGroupRequest.ModifyAutoProvisioningGroupRequestLaunchTemplateConfig> launchTemplateConfig)
public List<ModifyAutoProvisioningGroupRequest.ModifyAutoProvisioningGroupRequestLaunchTemplateConfig> getLaunchTemplateConfig()
public ModifyAutoProvisioningGroupRequest setMaxSpotPrice(Float maxSpotPrice)
public Float getMaxSpotPrice()
public ModifyAutoProvisioningGroupRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public ModifyAutoProvisioningGroupRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ModifyAutoProvisioningGroupRequest setPayAsYouGoTargetCapacity(String payAsYouGoTargetCapacity)
public String getPayAsYouGoTargetCapacity()
public ModifyAutoProvisioningGroupRequest setRegionId(String regionId)
public String getRegionId()
public ModifyAutoProvisioningGroupRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ModifyAutoProvisioningGroupRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public ModifyAutoProvisioningGroupRequest setSpotTargetCapacity(String spotTargetCapacity)
public String getSpotTargetCapacity()
public ModifyAutoProvisioningGroupRequest setTerminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration)
public Boolean getTerminateInstancesWithExpiration()
public ModifyAutoProvisioningGroupRequest setTotalTargetCapacity(String totalTargetCapacity)
public String getTotalTargetCapacity()
Copyright © 2024. All rights reserved.