Interface ServerGroup.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ServerGroup.Builder,
,ServerGroup> SdkBuilder<ServerGroup.Builder,
,ServerGroup> SdkPojo
- Enclosing class:
ServerGroup
public static interface ServerGroup.Builder
extends SdkPojo, CopyableBuilder<ServerGroup.Builder,ServerGroup>
-
Method Summary
Modifier and TypeMethodDescriptionThe name of a server group.serverGroupId
(String serverGroupId) The ID of a server group.serverList
(Collection<Server> serverList) The servers that belong to a server group.serverList
(Consumer<Server.Builder>... serverList) The servers that belong to a server group.serverList
(Server... serverList) The servers that belong to a server group.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
serverGroupId
The ID of a server group.
- Parameters:
serverGroupId
- The ID of a server group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of a server group.
- Parameters:
name
- The name of a server group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverList
The servers that belong to a server group.
- Parameters:
serverList
- The servers that belong to a server group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverList
The servers that belong to a server group.
- Parameters:
serverList
- The servers that belong to a server group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverList
The servers that belong to a server group.
This is a convenience method that creates an instance of theServer.Builder
avoiding the need to create one manually viaServer.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toserverList(List<Server>)
.- Parameters:
serverList
- a consumer that will call methods onServer.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-