Interface AccessKey.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AccessKey.Builder,
,AccessKey> SdkBuilder<AccessKey.Builder,
,AccessKey> SdkPojo
- Enclosing class:
AccessKey
-
Method Summary
Modifier and TypeMethodDescriptionaccessKeyId
(String accessKeyId) The ID of the access key.The timestamp when the access key was created.default AccessKey.Builder
lastUsed
(Consumer<AccessKeyLastUsed.Builder> lastUsed) An object that describes the last time the access key was used.lastUsed
(AccessKeyLastUsed lastUsed) An object that describes the last time the access key was used.secretAccessKey
(String secretAccessKey) The secret access key used to sign requests.The status of the access key.status
(StatusType status) The status of the access key.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
accessKeyId
The ID of the access key.
- Parameters:
accessKeyId
- The ID of the access key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the access key.
A status of
Active
means that the key is valid, whileInactive
means it is not.- Parameters:
status
- The status of the access key.A status of
Active
means that the key is valid, whileInactive
means it is not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the access key.
A status of
Active
means that the key is valid, whileInactive
means it is not.- Parameters:
status
- The status of the access key.A status of
Active
means that the key is valid, whileInactive
means it is not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
The timestamp when the access key was created.
- Parameters:
createdAt
- The timestamp when the access key was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
andserviceName
values areN/A
, and thelastUsedDate
value is null.- Parameters:
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
andserviceName
values areN/A
, and thelastUsedDate
value is null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
andserviceName
values areN/A
, and thelastUsedDate
value is null.AccessKeyLastUsed.Builder
avoiding the need to create one manually viaAccessKeyLastUsed.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolastUsed(AccessKeyLastUsed)
.- Parameters:
lastUsed
- 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:
-