Interface DescribeHostKeyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeHostKeyResponse.Builder,
,DescribeHostKeyResponse> SdkBuilder<DescribeHostKeyResponse.Builder,
,DescribeHostKeyResponse> SdkPojo
,SdkResponse.Builder
,TransferResponse.Builder
- Enclosing class:
DescribeHostKeyResponse
public static interface DescribeHostKeyResponse.Builder
extends TransferResponse.Builder, SdkPojo, CopyableBuilder<DescribeHostKeyResponse.Builder,DescribeHostKeyResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault DescribeHostKeyResponse.Builder
hostKey
(Consumer<DescribedHostKey.Builder> hostKey) Returns the details for the specified host key.hostKey
(DescribedHostKey hostKey) Returns the details for the specified host key.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
-
hostKey
Returns the details for the specified host key.
- Parameters:
hostKey
- Returns the details for the specified host key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostKey
Returns the details for the specified host key.
This is a convenience method that creates an instance of theDescribedHostKey.Builder
avoiding the need to create one manually viaDescribedHostKey.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohostKey(DescribedHostKey)
.- Parameters:
hostKey
- a consumer that will call methods onDescribedHostKey.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-