public class ModifyDedicatedHostAttributeRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
ModifyDedicatedHostAttributeRequest.ModifyDedicatedHostAttributeRequestNetworkAttributes |
限定符和类型 | 字段和说明 |
---|---|
String |
actionOnMaintenance
The policy for migrating the instances deployed on the dedicated host when the dedicated host fails or needs to be repaired online.
|
String |
autoPlacement
Specifies whether to add the dedicated host to the resource pool for automatic deployment.
|
Float |
cpuOverCommitRatio
The CPU overcommit ratio.
|
String |
dedicatedHostClusterId
The ID of the dedicated host cluster to which to assign the dedicated host.
|
String |
dedicatedHostId
The ID of the dedicated host.
|
String |
dedicatedHostName
The name of the dedicated host.
|
String |
description
The description of the dedicated host.
|
ModifyDedicatedHostAttributeRequest.ModifyDedicatedHostAttributeRequestNetworkAttributes |
networkAttributes |
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The ID of the region where the dedicated host resides.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
构造器和说明 |
---|
ModifyDedicatedHostAttributeRequest() |
@NameInMap(value="NetworkAttributes") public ModifyDedicatedHostAttributeRequest.ModifyDedicatedHostAttributeRequestNetworkAttributes networkAttributes
@NameInMap(value="ActionOnMaintenance") public String actionOnMaintenance
The policy for migrating the instances deployed on the dedicated host when the dedicated host fails or needs to be repaired online. Valid values:
If the dedicated host has cloud disks attached, the default value is Migrate.
If the dedicated host has local disks attached, the default value is Stop.
example:Migrate
@NameInMap(value="AutoPlacement") public String autoPlacement
Specifies whether to add the dedicated host to the resource pool for automatic deployment. If you do not specify DedicatedHostId when you create an instance on a dedicated host, Alibaba Cloud automatically selects a dedicated host from the resource pool to host the instance. Valid values:
For information about automatic deployment, see Functions and features.
example:on
@NameInMap(value="CpuOverCommitRatio") public Float cpuOverCommitRatio
The CPU overcommit ratio. You can configure CPU overcommit ratios only for the following dedicated host types: g6s, c6s, and r6s. Valid values: 1 to 5.
The CPU overcommit ratio affects the number of available vCPUs on a dedicated host. You can use the following formula to calculate the number of available vCPUs on a dedicated host: Number of available vCPUs = Number of physical CPU cores × 2 × CPU overcommit ratio. For example, the number of physical CPU cores on each g6s dedicated host is 52. If you change the CPU overcommit ratio of a g6s dedicated host to 4, the number of available vCPUs on the dedicated host is 416. For scenarios that have minimal requirements for CPU stability or where CPU load is not heavy, such as development and test environments, you can increase the number of available vCPUs on a dedicated host by increasing the CPU overcommit ratio. This allows you to deploy more ECS instances of the same specifications on the dedicated host and reduce the unit deployment cost.
example:1
@NameInMap(value="DedicatedHostClusterId") public String dedicatedHostClusterId
The ID of the dedicated host cluster to which to assign the dedicated host.
example:dc-bp165p6xk2tlw61e****
@NameInMap(value="DedicatedHostId") public String dedicatedHostId
The ID of the dedicated host.
This parameter is required.
example:dh-bp165p6xk2tlw61e****
@NameInMap(value="DedicatedHostName") public String dedicatedHostName
The name of the dedicated host. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).
example:testDedicatedHostName
@NameInMap(value="Description") public String description
The description of the dedicated host. The description must be 2 to 256 characters in length and cannot start with http://
or https://
.
testDescription
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The ID of the region where the dedicated host resides. 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
public static ModifyDedicatedHostAttributeRequest build(Map<String,?> map) throws Exception
Exception
public ModifyDedicatedHostAttributeRequest setNetworkAttributes(ModifyDedicatedHostAttributeRequest.ModifyDedicatedHostAttributeRequestNetworkAttributes networkAttributes)
public ModifyDedicatedHostAttributeRequest.ModifyDedicatedHostAttributeRequestNetworkAttributes getNetworkAttributes()
public ModifyDedicatedHostAttributeRequest setActionOnMaintenance(String actionOnMaintenance)
public String getActionOnMaintenance()
public ModifyDedicatedHostAttributeRequest setAutoPlacement(String autoPlacement)
public String getAutoPlacement()
public ModifyDedicatedHostAttributeRequest setCpuOverCommitRatio(Float cpuOverCommitRatio)
public Float getCpuOverCommitRatio()
public ModifyDedicatedHostAttributeRequest setDedicatedHostClusterId(String dedicatedHostClusterId)
public String getDedicatedHostClusterId()
public ModifyDedicatedHostAttributeRequest setDedicatedHostId(String dedicatedHostId)
public String getDedicatedHostId()
public ModifyDedicatedHostAttributeRequest setDedicatedHostName(String dedicatedHostName)
public String getDedicatedHostName()
public ModifyDedicatedHostAttributeRequest setDescription(String description)
public String getDescription()
public ModifyDedicatedHostAttributeRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public ModifyDedicatedHostAttributeRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public ModifyDedicatedHostAttributeRequest setRegionId(String regionId)
public String getRegionId()
public ModifyDedicatedHostAttributeRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public ModifyDedicatedHostAttributeRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
Copyright © 2024. All rights reserved.