public AutoRollbackConfig withAlarms(java.util.Collection<Alarm> alarms) {
        setAlarms(alarms);
        return this;
    }
<p>
List of CloudWatch alarms in your account that are configured to monitor metrics on an endpoint. If any alarms
are tripped during a deployment, SageMaker rolls back the deployment.
</p>

@param alarms
       List of CloudWatch alarms in your account that are configured to monitor metrics on an endpoint. If any
       alarms are tripped during a deployment, SageMaker rolls back the deployment.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/AutoRollbackConfig.java