public class ReplaceServersInServerGroupRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ReplaceServersInServerGroupRequest.ReplaceServersInServerGroupRequestAddedServers |
static class |
ReplaceServersInServerGroupRequest.ReplaceServersInServerGroupRequestRemovedServers |
| 限定符和类型 | 字段和说明 |
|---|---|
List<ReplaceServersInServerGroupRequest.ReplaceServersInServerGroupRequestAddedServers> |
addedServers
The backend servers that you want to add to the server group.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
Boolean |
dryRun
Specifies whether to perform only a dry run, without performing the actual request.
|
List<ReplaceServersInServerGroupRequest.ReplaceServersInServerGroupRequestRemovedServers> |
removedServers
The backend servers that you want to remove.
|
String |
serverGroupId
The ID of the server group.
|
| 构造器和说明 |
|---|
ReplaceServersInServerGroupRequest() |
@NameInMap(value="AddedServers") public List<ReplaceServersInServerGroupRequest.ReplaceServersInServerGroupRequestAddedServers> addedServers
The backend servers that you want to add to the server group. You can specify up to 40 backend servers in each call.
This parameter is required.
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request.
You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.
> If you do not specify this parameter, the system automatically uses the **request ID** as the **client token**. The **request ID** may be different for each request.
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform only a dry run, without performing the actual request. Valid values:
* **true**: performs a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error code is returned. If the request passes the dry run, the `DryRunOperation` error code is returned.
* **false** (default): performs a dry run and performs the actual request. If the request passes the dry run, a `2xx` HTTP status code is returned and the operation is performed.
@NameInMap(value="RemovedServers") public List<ReplaceServersInServerGroupRequest.ReplaceServersInServerGroupRequestRemovedServers> removedServers
The backend servers that you want to remove.
This parameter is required.
@NameInMap(value="ServerGroupId") public String serverGroupId
The ID of the server group.
> You cannot perform this operation on a server group of the Function type.
This parameter is required.
public static ReplaceServersInServerGroupRequest build(Map<String,?> map) throws Exception
Exceptionpublic ReplaceServersInServerGroupRequest setAddedServers(List<ReplaceServersInServerGroupRequest.ReplaceServersInServerGroupRequestAddedServers> addedServers)
public List<ReplaceServersInServerGroupRequest.ReplaceServersInServerGroupRequestAddedServers> getAddedServers()
public ReplaceServersInServerGroupRequest setClientToken(String clientToken)
public String getClientToken()
public ReplaceServersInServerGroupRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public ReplaceServersInServerGroupRequest setRemovedServers(List<ReplaceServersInServerGroupRequest.ReplaceServersInServerGroupRequestRemovedServers> removedServers)
public List<ReplaceServersInServerGroupRequest.ReplaceServersInServerGroupRequestRemovedServers> getRemovedServers()
public ReplaceServersInServerGroupRequest setServerGroupId(String serverGroupId)
public String getServerGroupId()
Copyright © 2024. All rights reserved.