public PatchComplianceData withState(String state) {
        setState(state);
        return this;
    }
<p>
The state of the patch on the managed node, such as INSTALLED or FAILED.
</p>
<p>
For descriptions of each patch state, see <a href=
"https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-compliance-about.html#sysman-compliance-monitor-patch"
>About patch compliance</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.
</p>

@param state
       The state of the patch on the managed node, such as INSTALLED or FAILED.</p>
       <p>
       For descriptions of each patch state, see <a href=
       "https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-compliance-about.html#sysman-compliance-monitor-patch"
       >About patch compliance</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
@see PatchComplianceDataState
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/PatchComplianceData.java