public ComplianceDrift withDriftType(DriftType driftType) {
        this.driftType = driftType.toString();
        return this;
    }
<p>
The type of drift detected. Currently, Resilience Hub supports only <b>ApplicationCompliance</b> drift type.
</p>

@param driftType
       The type of drift detected. Currently, Resilience Hub supports only <b>ApplicationCompliance</b> drift
       type.
@return Returns a reference to this object so that method calls can be chained together.
@see DriftType
aws-java-sdk-resiliencehub/src/main/java/com/amazonaws/services/resiliencehub/model/ComplianceDrift.java