Interface ListHostKeysResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListHostKeysResponse.Builder,
,ListHostKeysResponse> SdkBuilder<ListHostKeysResponse.Builder,
,ListHostKeysResponse> SdkPojo
,SdkResponse.Builder
,TransferResponse.Builder
- Enclosing class:
ListHostKeysResponse
public static interface ListHostKeysResponse.Builder
extends TransferResponse.Builder, SdkPojo, CopyableBuilder<ListHostKeysResponse.Builder,ListHostKeysResponse>
-
Method Summary
Modifier and TypeMethodDescriptionhostKeys
(Collection<ListedHostKey> hostKeys) Returns an array, where each item contains the details of a host key.hostKeys
(Consumer<ListedHostKey.Builder>... hostKeys) Returns an array, where each item contains the details of a host key.hostKeys
(ListedHostKey... hostKeys) Returns an array, where each item contains the details of a host key.Returns a token that you can use to callListHostKeys
again and receive additional results, if there are any.Returns the server identifier that contains the listed host keys.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
Methods inherited from interface software.amazon.awssdk.services.transfer.model.TransferResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
nextToken
Returns a token that you can use to call
ListHostKeys
again and receive additional results, if there are any.- Parameters:
nextToken
- Returns a token that you can use to callListHostKeys
again and receive additional results, if there are any.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverId
Returns the server identifier that contains the listed host keys.
- Parameters:
serverId
- Returns the server identifier that contains the listed host keys.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostKeys
Returns an array, where each item contains the details of a host key.
- Parameters:
hostKeys
- Returns an array, where each item contains the details of a host key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostKeys
Returns an array, where each item contains the details of a host key.
- Parameters:
hostKeys
- Returns an array, where each item contains the details of a host key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostKeys
Returns an array, where each item contains the details of a host key.
This is a convenience method that creates an instance of theListedHostKey.Builder
avoiding the need to create one manually viaListedHostKey.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohostKeys(List<ListedHostKey>)
.- Parameters:
hostKeys
- a consumer that will call methods onListedHostKey.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-