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 Details

    • 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 Active means that the key is valid, while Inactive means it is not.

      Parameters:
      status - The status of the access key.

      A status of Active means that the key is valid, while Inactive means it is not.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      AccessKey.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.

      Parameters:
      status - The status of the access key.

      A status of Active means that the key is valid, while Inactive means it is not.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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.

      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 and serviceName values are N/A, and the lastUsedDate 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 and serviceName values are N/A, and the lastUsedDate value is null.

      This is a convenience method that creates an instance of the 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).

      Parameters:
      lastUsed - a consumer that will call methods on AccessKeyLastUsed.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: