public static final class CreateScalingGroupRequest.ServerGroups.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
CreateScalingGroupRequest.ServerGroups |
build() |
CreateScalingGroupRequest.ServerGroups.Builder |
port(Integer port)
The port number used by each ECS instance as backend server in the vServer group.
|
CreateScalingGroupRequest.ServerGroups.Builder |
serverGroupId(String serverGroupId)
The ID of the server group.
|
CreateScalingGroupRequest.ServerGroups.Builder |
type(String type)
The type of the server group.
|
CreateScalingGroupRequest.ServerGroups.Builder |
weight(Integer weight)
The weight of each ECS instance as a backend server in the server group.
|
public CreateScalingGroupRequest.ServerGroups.Builder port(Integer port)
public CreateScalingGroupRequest.ServerGroups.Builder serverGroupId(String serverGroupId)
public CreateScalingGroupRequest.ServerGroups.Builder type(String type)
* ALB * NLB
public CreateScalingGroupRequest.ServerGroups.Builder weight(Integer weight)
If you increase the weight for an ECS instance, the number of requests that are forwarded to the ECS instance also increases. If you set the weight for an ECS instance to 0, no requests are forwarded to the ECS instance.
public CreateScalingGroupRequest.ServerGroups build()
Copyright © 2024. All rights reserved.