// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.sagemaker.inputs;

import com.pulumi.aws.sagemaker.inputs.EndpointDeploymentConfigAutoRollbackConfigurationAlarmArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class EndpointDeploymentConfigAutoRollbackConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final EndpointDeploymentConfigAutoRollbackConfigurationArgs Empty = new EndpointDeploymentConfigAutoRollbackConfigurationArgs();

    /**
     * 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. See Alarms.
     * 
     */
    @Import(name="alarms")
    private @Nullable Output<List<EndpointDeploymentConfigAutoRollbackConfigurationAlarmArgs>> alarms;

    /**
     * @return 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. See Alarms.
     * 
     */
    public Optional<Output<List<EndpointDeploymentConfigAutoRollbackConfigurationAlarmArgs>>> alarms() {
        return Optional.ofNullable(this.alarms);
    }

    private EndpointDeploymentConfigAutoRollbackConfigurationArgs() {}

    private EndpointDeploymentConfigAutoRollbackConfigurationArgs(EndpointDeploymentConfigAutoRollbackConfigurationArgs $) {
        this.alarms = $.alarms;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(EndpointDeploymentConfigAutoRollbackConfigurationArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private EndpointDeploymentConfigAutoRollbackConfigurationArgs $;

        public Builder() {
            $ = new EndpointDeploymentConfigAutoRollbackConfigurationArgs();
        }

        public Builder(EndpointDeploymentConfigAutoRollbackConfigurationArgs defaults) {
            $ = new EndpointDeploymentConfigAutoRollbackConfigurationArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @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. See Alarms.
         * 
         * @return builder
         * 
         */
        public Builder alarms(@Nullable Output<List<EndpointDeploymentConfigAutoRollbackConfigurationAlarmArgs>> alarms) {
            $.alarms = alarms;
            return this;
        }

        /**
         * @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. See Alarms.
         * 
         * @return builder
         * 
         */
        public Builder alarms(List<EndpointDeploymentConfigAutoRollbackConfigurationAlarmArgs> alarms) {
            return alarms(Output.of(alarms));
        }

        /**
         * @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. See Alarms.
         * 
         * @return builder
         * 
         */
        public Builder alarms(EndpointDeploymentConfigAutoRollbackConfigurationAlarmArgs... alarms) {
            return alarms(List.of(alarms));
        }

        public EndpointDeploymentConfigAutoRollbackConfigurationArgs build() {
            return $;
        }
    }

}
