public EventRiskType withCompromisedCredentialsDetected(Boolean compromisedCredentialsDetected) {
        setCompromisedCredentialsDetected(compromisedCredentialsDetected);
        return this;
    }
<p>
Indicates whether compromised credentials were detected during an authentication event.
</p>

@param compromisedCredentialsDetected
       Indicates whether compromised credentials were detected during an authentication event.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/EventRiskType.java