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

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

There is a newer version: 2.89.2
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.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of DeploymentCircuitBreaker
 * 
 */
public final class DeploymentCircuitBreakerArgs extends com.pulumi.resources.ResourceArgs {

    public static final DeploymentCircuitBreakerArgs Empty = new DeploymentCircuitBreakerArgs();

    /**
     * Determines whether to use the deployment circuit breaker logic for the service.
     * 
     */
    @Import(name="enable")
    private @Nullable Output enable;

    /**
     * @return Determines whether to use the deployment circuit breaker logic for the service.
     * 
     */
    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 on, 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 on, 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 DeploymentCircuitBreakerArgs() {}

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

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

    public static final class Builder {
        private DeploymentCircuitBreakerArgs $;

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

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

        /**
         * @param enable Determines whether to use the deployment circuit breaker logic for the service.
         * 
         * @return builder
         * 
         */
        public Builder enable(@Nullable Output enable) {
            $.enable = enable;
            return this;
        }

        /**
         * @param enable Determines whether to use the deployment circuit breaker logic for the service.
         * 
         * @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 on, 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 on, 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 DeploymentCircuitBreakerArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy