public EcrConfigurationState withRescanDurationState(EcrRescanDurationState rescanDurationState) {
        setRescanDurationState(rescanDurationState);
        return this;
    }
<p>
An object that contains details about the state of the ECR re-scan settings.
</p>

@param rescanDurationState
       An object that contains details about the state of the ECR re-scan settings.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/EcrConfigurationState.java