public static final class CreateInstanceRequest.PrivatePoolOptions.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
CreateInstanceRequest.PrivatePoolOptions |
build() |
CreateInstanceRequest.PrivatePoolOptions.Builder |
id(String id)
The ID of the private pool.
|
CreateInstanceRequest.PrivatePoolOptions.Builder |
matchCriteria(String matchCriteria)
The type of the private pool to use to start the instance.
|
public CreateInstanceRequest.PrivatePoolOptions.Builder id(String id)
public CreateInstanceRequest.PrivatePoolOptions.Builder matchCriteria(String matchCriteria)
* Open: open private pool. The system selects a matching open private pool to start the instance. If no matching open private pools are found, resources in the public pool are used. When you set this parameter to Open, you can leave the `PrivatePoolOptions.Id` parameter empty. * Target: specified private pool. The system uses the capacity in a specified private pool to start the instance. If the specified private pool is unavailable, the instance cannot be started. If you set this parameter to Target, you must specify the `PrivatePoolOptions.Id` parameter. * None: no private pool. The capacity in private pools is not used. Default value: none. In the following scenarios, the PrivatePoolOptions.MatchCriteria parameter can be set only to `None` or left empty: * Create a preemptible instance. * Create an instance in the classic network. * Create an instance on a dedicated host.
public CreateInstanceRequest.PrivatePoolOptions build()
Copyright © 2024. All rights reserved.