public GetServiceLastAccessedDetailsResult withError(ErrorDetails error) {
        setError(error);
        return this;
    }
<p>
An object that contains details about the reason the operation failed.
</p>

@param error
       An object that contains details about the reason the operation failed.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/GetServiceLastAccessedDetailsResult.java