Interface AccessKey.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AccessKey.Builder,AccessKey>,SdkBuilder<AccessKey.Builder,AccessKey>,SdkPojo
- Enclosing class:
- AccessKey
public static interface AccessKey.Builder extends SdkPojo, CopyableBuilder<AccessKey.Builder,AccessKey>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AccessKey.BuilderaccessKeyId(String accessKeyId)The ID of the access key.AccessKey.BuildercreatedAt(Instant createdAt)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.AccessKey.BuilderlastUsed(AccessKeyLastUsed lastUsed)An object that describes the last time the access key was used.AccessKey.BuildersecretAccessKey(String secretAccessKey)The secret access key used to sign requests.AccessKey.Builderstatus(String status)The status of the access key.AccessKey.Builderstatus(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 Detail
-
accessKeyId
AccessKey.Builder accessKeyId(String 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
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.
- 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
AccessKey.Builder status(String 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:
StatusType,StatusType
-
status
AccessKey.Builder status(StatusType 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:
StatusType,StatusType
-
createdAt
AccessKey.Builder createdAt(Instant 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
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
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
default AccessKey.Builder lastUsed(Consumer<AccessKeyLastUsed.Builder> 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:
lastUsed(AccessKeyLastUsed)
-
-