Interface GetAccessKeyLastUsedResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetAccessKeyLastUsedResponse.Builder,
,GetAccessKeyLastUsedResponse> IamResponse.Builder
,SdkBuilder<GetAccessKeyLastUsedResponse.Builder,
,GetAccessKeyLastUsedResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetAccessKeyLastUsedResponse
public static interface GetAccessKeyLastUsedResponse.Builder
extends IamResponse.Builder, SdkPojo, CopyableBuilder<GetAccessKeyLastUsedResponse.Builder,GetAccessKeyLastUsedResponse>
-
Method Summary
Modifier and TypeMethodDescriptionaccessKeyLastUsed
(Consumer<AccessKeyLastUsed.Builder> accessKeyLastUsed) Contains information about the last time the access key was used.accessKeyLastUsed
(AccessKeyLastUsed accessKeyLastUsed) Contains information about the last time the access key was used.The name of the IAM user that owns this 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
-
userName
The name of the IAM user that owns this access key.
- Parameters:
userName
- The name of the IAM user that owns this access key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessKeyLastUsed
Contains information about the last time the access key was used.
- Parameters:
accessKeyLastUsed
- Contains information about the last time the access key was used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessKeyLastUsed
default GetAccessKeyLastUsedResponse.Builder accessKeyLastUsed(Consumer<AccessKeyLastUsed.Builder> accessKeyLastUsed) Contains information about the last time the access key was used.
This is a convenience method that creates an instance of theAccessKeyLastUsed.Builder
avoiding the need to create one manually viaAccessKeyLastUsed.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccessKeyLastUsed(AccessKeyLastUsed)
.- Parameters:
accessKeyLastUsed
- a consumer that will call methods onAccessKeyLastUsed.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-