public AccessKey withStatus(String status) {
        setStatus(status);
        return this;
    }
<p>
The status of the access key.
</p>
<p>
A status of <code>Active</code> means that the key is valid, while <code>Inactive</code> means it is not.
</p>

@param status
       The status of the access key.</p>
       <p>
       A status of <code>Active</code> means that the key is valid, while <code>Inactive</code> means it is not.
@return Returns a reference to this object so that method calls can be chained together.
@see StatusType
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/AccessKey.java