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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListHostKeysResponse.BuilderhostKeys(Collection<ListedHostKey> hostKeys)Returns an array, where each item contains the details of a host key.ListHostKeysResponse.BuilderhostKeys(Consumer<ListedHostKey.Builder>... hostKeys)Returns an array, where each item contains the details of a host key.ListHostKeysResponse.BuilderhostKeys(ListedHostKey... hostKeys)Returns an array, where each item contains the details of a host key.ListHostKeysResponse.BuildernextToken(String nextToken)Returns a token that you can use to callListHostKeysagain and receive additional results, if there are any.ListHostKeysResponse.BuilderserverId(String serverId)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, sdkFieldNameToField, 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 Detail
-
nextToken
ListHostKeysResponse.Builder nextToken(String nextToken)
Returns a token that you can use to call
ListHostKeysagain and receive additional results, if there are any.- Parameters:
nextToken- Returns a token that you can use to callListHostKeysagain and receive additional results, if there are any.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverId
ListHostKeysResponse.Builder serverId(String 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
ListHostKeysResponse.Builder hostKeys(Collection<ListedHostKey> 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
ListHostKeysResponse.Builder hostKeys(ListedHostKey... 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
ListHostKeysResponse.Builder hostKeys(Consumer<ListedHostKey.Builder>... 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.Builderavoiding the need to create one manually viaListedHostKey.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#hostKeys(List.) - 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:
#hostKeys(java.util.Collection)
-
-