Interface AccessKey.Builder

    • 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 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:
        StatusType, StatusType
      • 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:
        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 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.