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.BuilderaccessKey(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
copyMethods inherited from interface software.amazon.awssdk.services.iam.model.IamResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods 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.Builderavoiding the need to create one manually viaAccessKey.builder().When the
Consumercompletes,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:
-