public static interface AccessKey.Builder extends SdkPojo, CopyableBuilder<AccessKey.Builder,AccessKey>
| Modifier and Type | Method and Description |
|---|---|
AccessKey.Builder |
accessKeyId(String accessKeyId)
The ID of the access key.
|
AccessKey.Builder |
createdAt(Instant createdAt)
The timestamp when the access key was created.
|
AccessKey.Builder |
lastUsed(AccessKeyLastUsed lastUsed)
An object that describes the last time the access key was used.
|
default AccessKey.Builder |
lastUsed(Consumer<AccessKeyLastUsed.Builder> lastUsed)
An object that describes the last time the access key was used.
|
AccessKey.Builder |
secretAccessKey(String secretAccessKey)
The secret access key used to sign requests.
|
AccessKey.Builder |
status(StatusType status)
The status of the access key.
|
AccessKey.Builder |
status(String status)
The status of the access key.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildAccessKey.Builder accessKeyId(String accessKeyId)
The ID of the access key.
accessKeyId - The ID of the access key.AccessKey.Builder secretAccessKey(String secretAccessKey)
The secret access key used to sign requests.
You should store the secret access key in a safe location. We recommend that you delete the access key if the secret access key is compromised.
secretAccessKey - The secret access key used to sign requests.
You should store the secret access key in a safe location. We recommend that you delete the access key if the secret access key is compromised.
AccessKey.Builder status(String status)
The status of the access key.
A status of Active means that the key is valid, while Inactive means it is not.
status - The status of the access key.
A status of Active means that the key is valid, while Inactive means it is
not.
StatusType,
StatusTypeAccessKey.Builder status(StatusType status)
The status of the access key.
A status of Active means that the key is valid, while Inactive means it is not.
status - The status of the access key.
A status of Active means that the key is valid, while Inactive means it is
not.
StatusType,
StatusTypeAccessKey.Builder createdAt(Instant createdAt)
The timestamp when the access key was created.
createdAt - The timestamp when the access key was created.AccessKey.Builder lastUsed(AccessKeyLastUsed lastUsed)
An object that describes the last time the access key was used.
This object does not include data in the response of a CreateBucketAccessKey action. If the access key has not been used, the region and
serviceName values are N/A, and the lastUsedDate value is null.
lastUsed - An object that describes the last time the access key was used.
This object does not include data in the response of a CreateBucketAccessKey action. If the access key has not been used, the region and
serviceName values are N/A, and the lastUsedDate value is null.
default AccessKey.Builder lastUsed(Consumer<AccessKeyLastUsed.Builder> lastUsed)
An object that describes the last time the access key was used.
This object does not include data in the response of a CreateBucketAccessKey action. If the access key has not been used, the region and
serviceName values are N/A, and the lastUsedDate value is null.
AccessKeyLastUsed.Builder
avoiding the need to create one manually via AccessKeyLastUsed.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to lastUsed(AccessKeyLastUsed).
lastUsed - a consumer that will call methods on AccessKeyLastUsed.BuilderlastUsed(AccessKeyLastUsed)Copyright © 2023. All rights reserved.