public ComplianceByResource withCompliance(Compliance compliance) {
        setCompliance(compliance);
        return this;
    }
<p>
Indicates whether the Amazon Web Services resource complies with all of the Config rules that evaluated it.
</p>

@param compliance
       Indicates whether the Amazon Web Services resource complies with all of the Config rules that evaluated
       it.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-config/src/main/java/com/amazonaws/services/config/model/ComplianceByResource.java