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

com.pulumi.googlenative.integrations.v1alpha.outputs.EnterpriseCrmFrontendsEventbusProtoRollbackStrategyResponse 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.googlenative.integrations.v1alpha.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.googlenative.integrations.v1alpha.outputs.EnterpriseCrmFrontendsEventbusProtoEventParametersResponse;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class EnterpriseCrmFrontendsEventbusProtoRollbackStrategyResponse {
    /**
     * @return Optional. The customized parameters the user can pass to this task.
     * 
     */
    private EnterpriseCrmFrontendsEventbusProtoEventParametersResponse parameters;
    /**
     * @return This is the name of the task that needs to be executed upon rollback of this task.
     * 
     */
    private String rollbackTaskImplementationClassName;
    /**
     * @return These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task.
     * 
     */
    private List taskNumbersToRollback;

    private EnterpriseCrmFrontendsEventbusProtoRollbackStrategyResponse() {}
    /**
     * @return Optional. The customized parameters the user can pass to this task.
     * 
     */
    public EnterpriseCrmFrontendsEventbusProtoEventParametersResponse parameters() {
        return this.parameters;
    }
    /**
     * @return This is the name of the task that needs to be executed upon rollback of this task.
     * 
     */
    public String rollbackTaskImplementationClassName() {
        return this.rollbackTaskImplementationClassName;
    }
    /**
     * @return These are the tasks numbers of the tasks whose `rollback_strategy.rollback_task_implementation_class_name` needs to be executed upon failure of this task.
     * 
     */
    public List taskNumbersToRollback() {
        return this.taskNumbersToRollback;
    }

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

    public static Builder builder(EnterpriseCrmFrontendsEventbusProtoRollbackStrategyResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private EnterpriseCrmFrontendsEventbusProtoEventParametersResponse parameters;
        private String rollbackTaskImplementationClassName;
        private List taskNumbersToRollback;
        public Builder() {}
        public Builder(EnterpriseCrmFrontendsEventbusProtoRollbackStrategyResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.parameters = defaults.parameters;
    	      this.rollbackTaskImplementationClassName = defaults.rollbackTaskImplementationClassName;
    	      this.taskNumbersToRollback = defaults.taskNumbersToRollback;
        }

        @CustomType.Setter
        public Builder parameters(EnterpriseCrmFrontendsEventbusProtoEventParametersResponse parameters) {
            this.parameters = Objects.requireNonNull(parameters);
            return this;
        }
        @CustomType.Setter
        public Builder rollbackTaskImplementationClassName(String rollbackTaskImplementationClassName) {
            this.rollbackTaskImplementationClassName = Objects.requireNonNull(rollbackTaskImplementationClassName);
            return this;
        }
        @CustomType.Setter
        public Builder taskNumbersToRollback(List taskNumbersToRollback) {
            this.taskNumbersToRollback = Objects.requireNonNull(taskNumbersToRollback);
            return this;
        }
        public Builder taskNumbersToRollback(String... taskNumbersToRollback) {
            return taskNumbersToRollback(List.of(taskNumbersToRollback));
        }
        public EnterpriseCrmFrontendsEventbusProtoRollbackStrategyResponse build() {
            final var o = new EnterpriseCrmFrontendsEventbusProtoRollbackStrategyResponse();
            o.parameters = parameters;
            o.rollbackTaskImplementationClassName = rollbackTaskImplementationClassName;
            o.taskNumbersToRollback = taskNumbersToRollback;
            return o;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy