public static class CreateInstanceRequest.CreateInstanceRequestPrivatePoolOptions
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
id
The ID of the private pool to use to create the instance.
|
String |
matchCriteria
The type of the private pool to use to create the instance.
|
构造器和说明 |
---|
CreateInstanceRequestPrivatePoolOptions() |
限定符和类型 | 方法和说明 |
---|---|
static CreateInstanceRequest.CreateInstanceRequestPrivatePoolOptions |
build(Map<String,?> map) |
String |
getId() |
String |
getMatchCriteria() |
CreateInstanceRequest.CreateInstanceRequestPrivatePoolOptions |
setId(String id) |
CreateInstanceRequest.CreateInstanceRequestPrivatePoolOptions |
setMatchCriteria(String matchCriteria) |
@NameInMap(value="Id") public String id
The ID of the private pool to use to create the instance. The ID of a private pool is the same as that of the elasticity assurance or capacity reservation for which the private pool is generated.
@NameInMap(value="MatchCriteria") public String matchCriteria
The type of the private pool to use to create the instance. A private pool is generated when an elasticity assurance or a capacity reservation takes effect. You can select a private pool when you create an instance. Valid values:
* 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:
* Create a preemptible instance.
* Create an instance in the classic network.
* Create an instance on a dedicated host.
public static CreateInstanceRequest.CreateInstanceRequestPrivatePoolOptions build(Map<String,?> map) throws Exception
Exception
public CreateInstanceRequest.CreateInstanceRequestPrivatePoolOptions setId(String id)
public String getId()
public CreateInstanceRequest.CreateInstanceRequestPrivatePoolOptions setMatchCriteria(String matchCriteria)
public String getMatchCriteria()
Copyright © 2023. All rights reserved.