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

com.pulumi.azurenative.awsconnector.outputs.DeploymentCircuitBreakerResponse Maven / Gradle / Ivy

// *** 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.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DeploymentCircuitBreakerResponse {
    /**
     * @return Determines whether to use the deployment circuit breaker logic for the service.
     * 
     */
    private @Nullable Boolean enable;
    /**
     * @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.
     * 
     */
    private @Nullable Boolean rollback;

    private DeploymentCircuitBreakerResponse() {}
    /**
     * @return Determines whether to use the deployment circuit breaker logic for the service.
     * 
     */
    public Optional enable() {
        return Optional.ofNullable(this.enable);
    }
    /**
     * @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);
    }

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

    public static Builder builder(DeploymentCircuitBreakerResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean enable;
        private @Nullable Boolean rollback;
        public Builder() {}
        public Builder(DeploymentCircuitBreakerResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.enable = defaults.enable;
    	      this.rollback = defaults.rollback;
        }

        @CustomType.Setter
        public Builder enable(@Nullable Boolean enable) {

            this.enable = enable;
            return this;
        }
        @CustomType.Setter
        public Builder rollback(@Nullable Boolean rollback) {

            this.rollback = rollback;
            return this;
        }
        public DeploymentCircuitBreakerResponse build() {
            final var _resultValue = new DeploymentCircuitBreakerResponse();
            _resultValue.enable = enable;
            _resultValue.rollback = rollback;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy