All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.awsconnector.inputs.DeploymentAlarmsArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** 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.azurenative.awsconnector.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of DeploymentAlarms
 * 
 */
public final class DeploymentAlarmsArgs extends com.pulumi.resources.ResourceArgs {

    public static final DeploymentAlarmsArgs Empty = new DeploymentAlarmsArgs();

    /**
     * One or more CloudWatch alarm names. Use a ',' to separate the alarms.
     * 
     */
    @Import(name="alarmNames")
    private @Nullable Output> alarmNames;

    /**
     * @return One or more CloudWatch alarm names. Use a ',' to separate the alarms.
     * 
     */
    public Optional>> alarmNames() {
        return Optional.ofNullable(this.alarmNames);
    }

    /**
     * Determines whether to use the CloudWatch alarm option in the service deployment process.
     * 
     */
    @Import(name="enable")
    private @Nullable Output enable;

    /**
     * @return Determines whether to use the CloudWatch alarm option in the service deployment process.
     * 
     */
    public Optional> enable() {
        return Optional.ofNullable(this.enable);
    }

    /**
     * Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
     * 
     */
    @Import(name="rollback")
    private @Nullable Output rollback;

    /**
     * @return Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
     * 
     */
    public Optional> rollback() {
        return Optional.ofNullable(this.rollback);
    }

    private DeploymentAlarmsArgs() {}

    private DeploymentAlarmsArgs(DeploymentAlarmsArgs $) {
        this.alarmNames = $.alarmNames;
        this.enable = $.enable;
        this.rollback = $.rollback;
    }

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

    public static final class Builder {
        private DeploymentAlarmsArgs $;

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

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

        /**
         * @param alarmNames One or more CloudWatch alarm names. Use a ',' to separate the alarms.
         * 
         * @return builder
         * 
         */
        public Builder alarmNames(@Nullable Output> alarmNames) {
            $.alarmNames = alarmNames;
            return this;
        }

        /**
         * @param alarmNames One or more CloudWatch alarm names. Use a ',' to separate the alarms.
         * 
         * @return builder
         * 
         */
        public Builder alarmNames(List alarmNames) {
            return alarmNames(Output.of(alarmNames));
        }

        /**
         * @param alarmNames One or more CloudWatch alarm names. Use a ',' to separate the alarms.
         * 
         * @return builder
         * 
         */
        public Builder alarmNames(String... alarmNames) {
            return alarmNames(List.of(alarmNames));
        }

        /**
         * @param enable Determines whether to use the CloudWatch alarm option in the service deployment process.
         * 
         * @return builder
         * 
         */
        public Builder enable(@Nullable Output enable) {
            $.enable = enable;
            return this;
        }

        /**
         * @param enable Determines whether to use the CloudWatch alarm option in the service deployment process.
         * 
         * @return builder
         * 
         */
        public Builder enable(Boolean enable) {
            return enable(Output.of(enable));
        }

        /**
         * @param rollback Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
         * 
         * @return builder
         * 
         */
        public Builder rollback(@Nullable Output rollback) {
            $.rollback = rollback;
            return this;
        }

        /**
         * @param rollback Determines whether to configure Amazon ECS to roll back the service if a service deployment fails. If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
         * 
         * @return builder
         * 
         */
        public Builder rollback(Boolean rollback) {
            return rollback(Output.of(rollback));
        }

        public DeploymentAlarmsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy