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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListHostsResponse.Builderhosts(Collection<Host> hosts)A list of hosts and the details for each host, such as status, endpoint, and provider type.ListHostsResponse.Builderhosts(Consumer<Host.Builder>... hosts)A list of hosts and the details for each host, such as status, endpoint, and provider type.ListHostsResponse.Builderhosts(Host... hosts)A list of hosts and the details for each host, such as status, endpoint, and provider type.ListHostsResponse.BuildernextToken(String nextToken)A token that can be used in the nextListHostscall.-
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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
hosts
ListHostsResponse.Builder hosts(Collection<Host> 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
ListHostsResponse.Builder hosts(Host... 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
ListHostsResponse.Builder hosts(Consumer<Host.Builder>... 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.Builderavoiding the need to create one manually viaHost.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#hosts(List.) - 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:
#hosts(java.util.Collection)
-
nextToken
ListHostsResponse.Builder nextToken(String nextToken)
A token that can be used in the next
ListHostscall. To view all items in the list, continue to call this operation with each subsequent token until no morenextTokenvalues are returned.- Parameters:
nextToken- A token that can be used in the nextListHostscall. To view all items in the list, continue to call this operation with each subsequent token until no morenextTokenvalues are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-