Interface ListHostsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CodeStarConnectionsResponse.Builder
,CopyableBuilder<ListHostsResponse.Builder,
,ListHostsResponse> SdkBuilder<ListHostsResponse.Builder,
,ListHostsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListHostsResponse
public static interface ListHostsResponse.Builder
extends CodeStarConnectionsResponse.Builder, SdkPojo, CopyableBuilder<ListHostsResponse.Builder,ListHostsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionhosts
(Collection<Host> hosts) A list of hosts and the details for each host, such as status, endpoint, and provider type.hosts
(Consumer<Host.Builder>... hosts) A list of hosts and the details for each host, such as status, endpoint, and provider type.A list of hosts and the details for each host, such as status, endpoint, and provider type.A token that can be used in the nextListHosts
call.Methods inherited from interface software.amazon.awssdk.services.codestarconnections.model.CodeStarConnectionsResponse.Builder
build, responseMetadata, responseMetadata
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
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
hosts
A list of hosts and the details for each host, such as status, endpoint, and provider type.
- Parameters:
hosts
- A list of hosts and the details for each host, such as status, endpoint, and provider type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hosts
A list of hosts and the details for each host, such as status, endpoint, and provider type.
- Parameters:
hosts
- A list of hosts and the details for each host, such as status, endpoint, and provider type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hosts
A list of hosts and the details for each host, such as status, endpoint, and provider type.
This is a convenience method that creates an instance of theHost.Builder
avoiding the need to create one manually viaHost.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohosts(List<Host>)
.- Parameters:
hosts
- a consumer that will call methods onHost.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
A token that can be used in the next
ListHosts
call. To view all items in the list, continue to call this operation with each subsequent token until no morenextToken
values are returned.- Parameters:
nextToken
- A token that can be used in the nextListHosts
call. To view all items in the list, continue to call this operation with each subsequent token until no morenextToken
values are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-