public static final class ModifyDedicatedHostAttributeRequest.Builder extends Object
public ModifyDedicatedHostAttributeRequest.Builder networkAttributes(ModifyDedicatedHostAttributeRequest.NetworkAttributes networkAttributes)
public ModifyDedicatedHostAttributeRequest.Builder sourceRegionId(String sourceRegionId)
public ModifyDedicatedHostAttributeRequest.Builder actionOnMaintenance(String actionOnMaintenance)
* Migrate: The instances are migrated to another physical machine and then restarted. * Stop: The instances are stopped. If the dedicated host cannot be repaired, the instances are migrated to another physical machine and then restarted. 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.
public ModifyDedicatedHostAttributeRequest.Builder autoPlacement(String autoPlacement)
* on: adds the dedicated host to the resource pool for automatic deployment. * off: does not add the dedicated host to the resource pool for automatic deployment. For information about automatic deployment, see [Functions and features](~~118938~~).
public ModifyDedicatedHostAttributeRequest.Builder cpuOverCommitRatio(Float cpuOverCommitRatio)
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.
public ModifyDedicatedHostAttributeRequest.Builder dedicatedHostClusterId(String dedicatedHostClusterId)
public ModifyDedicatedHostAttributeRequest.Builder dedicatedHostId(String dedicatedHostId)
public ModifyDedicatedHostAttributeRequest.Builder dedicatedHostName(String dedicatedHostName)
public ModifyDedicatedHostAttributeRequest.Builder description(String description)
public ModifyDedicatedHostAttributeRequest.Builder ownerAccount(String ownerAccount)
public ModifyDedicatedHostAttributeRequest.Builder ownerId(Long ownerId)
public ModifyDedicatedHostAttributeRequest.Builder regionId(String regionId)
public ModifyDedicatedHostAttributeRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyDedicatedHostAttributeRequest.Builder resourceOwnerId(Long resourceOwnerId)
public ModifyDedicatedHostAttributeRequest build()
Copyright © 2024. All rights reserved.