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

com.pulumi.azurenative.datafactory.outputs.ChainingTriggerResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.datafactory.outputs;

import com.pulumi.azurenative.datafactory.outputs.PipelineReferenceResponse;
import com.pulumi.azurenative.datafactory.outputs.TriggerPipelineReferenceResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ChainingTriggerResponse {
    /**
     * @return List of tags that can be used for describing the trigger.
     * 
     */
    private @Nullable List annotations;
    /**
     * @return Upstream Pipelines.
     * 
     */
    private List dependsOn;
    /**
     * @return Trigger description.
     * 
     */
    private @Nullable String description;
    /**
     * @return Pipeline for which runs are created when all upstream pipelines complete successfully.
     * 
     */
    private TriggerPipelineReferenceResponse pipeline;
    /**
     * @return Run Dimension property that needs to be emitted by upstream pipelines.
     * 
     */
    private String runDimension;
    /**
     * @return Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger.
     * 
     */
    private String runtimeState;
    /**
     * @return Trigger type.
     * Expected value is 'ChainingTrigger'.
     * 
     */
    private String type;

    private ChainingTriggerResponse() {}
    /**
     * @return List of tags that can be used for describing the trigger.
     * 
     */
    public List annotations() {
        return this.annotations == null ? List.of() : this.annotations;
    }
    /**
     * @return Upstream Pipelines.
     * 
     */
    public List dependsOn() {
        return this.dependsOn;
    }
    /**
     * @return Trigger description.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Pipeline for which runs are created when all upstream pipelines complete successfully.
     * 
     */
    public TriggerPipelineReferenceResponse pipeline() {
        return this.pipeline;
    }
    /**
     * @return Run Dimension property that needs to be emitted by upstream pipelines.
     * 
     */
    public String runDimension() {
        return this.runDimension;
    }
    /**
     * @return Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger.
     * 
     */
    public String runtimeState() {
        return this.runtimeState;
    }
    /**
     * @return Trigger type.
     * Expected value is 'ChainingTrigger'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(ChainingTriggerResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List annotations;
        private List dependsOn;
        private @Nullable String description;
        private TriggerPipelineReferenceResponse pipeline;
        private String runDimension;
        private String runtimeState;
        private String type;
        public Builder() {}
        public Builder(ChainingTriggerResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.annotations = defaults.annotations;
    	      this.dependsOn = defaults.dependsOn;
    	      this.description = defaults.description;
    	      this.pipeline = defaults.pipeline;
    	      this.runDimension = defaults.runDimension;
    	      this.runtimeState = defaults.runtimeState;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder annotations(@Nullable List annotations) {

            this.annotations = annotations;
            return this;
        }
        public Builder annotations(Object... annotations) {
            return annotations(List.of(annotations));
        }
        @CustomType.Setter
        public Builder dependsOn(List dependsOn) {
            if (dependsOn == null) {
              throw new MissingRequiredPropertyException("ChainingTriggerResponse", "dependsOn");
            }
            this.dependsOn = dependsOn;
            return this;
        }
        public Builder dependsOn(PipelineReferenceResponse... dependsOn) {
            return dependsOn(List.of(dependsOn));
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder pipeline(TriggerPipelineReferenceResponse pipeline) {
            if (pipeline == null) {
              throw new MissingRequiredPropertyException("ChainingTriggerResponse", "pipeline");
            }
            this.pipeline = pipeline;
            return this;
        }
        @CustomType.Setter
        public Builder runDimension(String runDimension) {
            if (runDimension == null) {
              throw new MissingRequiredPropertyException("ChainingTriggerResponse", "runDimension");
            }
            this.runDimension = runDimension;
            return this;
        }
        @CustomType.Setter
        public Builder runtimeState(String runtimeState) {
            if (runtimeState == null) {
              throw new MissingRequiredPropertyException("ChainingTriggerResponse", "runtimeState");
            }
            this.runtimeState = runtimeState;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("ChainingTriggerResponse", "type");
            }
            this.type = type;
            return this;
        }
        public ChainingTriggerResponse build() {
            final var _resultValue = new ChainingTriggerResponse();
            _resultValue.annotations = annotations;
            _resultValue.dependsOn = dependsOn;
            _resultValue.description = description;
            _resultValue.pipeline = pipeline;
            _resultValue.runDimension = runDimension;
            _resultValue.runtimeState = runtimeState;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}