public static interface CreateAccessKeyResponse.Builder extends IamResponse.Builder, CopyableBuilder<CreateAccessKeyResponse.Builder,CreateAccessKeyResponse>
Modifier and Type | Method and Description |
---|---|
CreateAccessKeyResponse.Builder |
accessKey(AccessKey accessKey)
A structure with details about the access key.
|
default CreateAccessKeyResponse.Builder |
accessKey(Consumer<AccessKey.Builder> accessKey)
A structure with details about the access key.
|
build
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
CreateAccessKeyResponse.Builder accessKey(AccessKey accessKey)
A structure with details about the access key.
accessKey
- A structure with details about the access key.default CreateAccessKeyResponse.Builder accessKey(Consumer<AccessKey.Builder> accessKey)
A structure with details about the access key.
This is a convenience that creates an instance of theAccessKey.Builder
avoiding the need to create
one manually via AccessKey.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to accessKey(AccessKey)
.accessKey
- a consumer that will call methods on AccessKey.Builder
accessKey(AccessKey)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.