Interface CreateAccessKeyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateAccessKeyResponse.Builder,
,CreateAccessKeyResponse> IamResponse.Builder
,SdkBuilder<CreateAccessKeyResponse.Builder,
,CreateAccessKeyResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateAccessKeyResponse
public static interface CreateAccessKeyResponse.Builder
extends IamResponse.Builder, SdkPojo, CopyableBuilder<CreateAccessKeyResponse.Builder,CreateAccessKeyResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateAccessKeyResponse.Builder
accessKey
(Consumer<AccessKey.Builder> accessKey) A structure with details about the access key.A structure with details about the access key.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.iam.model.IamResponse.Builder
build, responseMetadata, responseMetadata
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
-
Method Details
-
accessKey
A structure with details about the access key.
- Parameters:
accessKey
- A structure with details about the access key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessKey
A structure with details about the access key.
This is a convenience method that creates an instance of theAccessKey.Builder
avoiding the need to create one manually viaAccessKey.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccessKey(AccessKey)
.- Parameters:
accessKey
- a consumer that will call methods onAccessKey.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-