public Resource withDetails(ResourceDetails details) {
        setDetails(details);
        return this;
    }
<p>
An object that contains details about the resource involved in a finding.
</p>

@param details
       An object that contains details about the resource involved in a finding.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/Resource.java