public static final class RunInstancesRequest.PrivatePoolOptions.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
RunInstancesRequest.PrivatePoolOptions |
build() |
RunInstancesRequest.PrivatePoolOptions.Builder |
id(String id)
The ID of the private pool.
|
RunInstancesRequest.PrivatePoolOptions.Builder |
matchCriteria(String matchCriteria)
The type of the private pool to use to create the instance.
|
public RunInstancesRequest.PrivatePoolOptions.Builder id(String id)
public RunInstancesRequest.PrivatePoolOptions.Builder matchCriteria(String matchCriteria)
* Open: open private pool. The system selects a matching open private pool to create 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 create the instance. If the specified private pool is unavailable, the instance cannot be created. 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: * A preemptible instance is created. * The instance is created in the classic network. * The instance is created on a dedicated host.
public RunInstancesRequest.PrivatePoolOptions build()
Copyright © 2024. All rights reserved.