public CreateScanResult withResourceId(ResourceId resourceId) {
        setResourceId(resourceId);
        return this;
    }
<p>
The identifier for the resource object that contains resources that were scanned.
</p>

@param resourceId
       The identifier for the resource object that contains resources that were scanned.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codegurusecurity/src/main/java/com/amazonaws/services/codegurusecurity/model/CreateScanResult.java