public void setLastUsed(AccessKeyLastUsed lastUsed) {
        this.lastUsed = lastUsed;
    }
<p>
An object that describes the last time the access key was used.
</p>
<note>
<p>
This object does not include data in the response of a <a
href="https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateBucketAccessKey.html"
>CreateBucketAccessKey</a> action. If the access key has not been used, the <code>region</code> and
<code>serviceName</code> values are <code>N/A</code>, and the <code>lastUsedDate</code> value is null.
</p>
</note>

@param lastUsed
       An object that describes the last time the access key was used.</p> <note>
       <p>
       This object does not include data in the response of a <a
       href="https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateBucketAccessKey.html"
       >CreateBucketAccessKey</a> action. If the access key has not been used, the <code>region</code> and
       <code>serviceName</code> values are <code>N/A</code>, and the <code>lastUsedDate</code> value is null.
       </p>
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/AccessKey.java