public RegisterResourceRequest withWithFederation(Boolean withFederation) {
        setWithFederation(withFederation);
        return this;
    }
<p>
Whether or not the resource is a federated resource.
</p>

@param withFederation
       Whether or not the resource is a federated resource.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lakeformation/src/main/java/com/amazonaws/services/lakeformation/model/RegisterResourceRequest.java