public ComplianceDrift withEntityType(String entityType) {
        setEntityType(entityType);
        return this;
    }
<p>
The type of entity in which drift was detected. For compliance drifts, Resilience Hub supports
<code>AWS::ResilienceHub::AppComponent</code> and <code>AWS::ResilienceHub::Application</code>.
</p>

@param entityType
       The type of entity in which drift was detected. For compliance drifts, Resilience Hub supports
       <code>AWS::ResilienceHub::AppComponent</code> and <code>AWS::ResilienceHub::Application</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-resiliencehub/src/main/java/com/amazonaws/services/resiliencehub/model/ComplianceDrift.java