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.BuilderlastUsed(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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
Activemeans that the key is valid, whileInactivemeans it is not.- Parameters:
status- The status of the access key.A status of
Activemeans that the key is valid, whileInactivemeans 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
Activemeans that the key is valid, whileInactivemeans it is not.- Parameters:
status- The status of the access key.A status of
Activemeans that the key is valid, whileInactivemeans 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
regionandserviceNamevalues areN/A, and thelastUsedDatevalue 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
regionandserviceNamevalues areN/A, and thelastUsedDatevalue 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 is a convenience method that creates an instance of theThis object does not include data in the response of a CreateBucketAccessKey action. If the access key has not been used, the
regionandserviceNamevalues areN/A, and thelastUsedDatevalue is null.AccessKeyLastUsed.Builderavoiding the need to create one manually viaAccessKeyLastUsed.builder().When the
Consumercompletes,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:
-