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

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

There is a newer version: 2.82.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.TriggerPipelineReferenceResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
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 BlobEventsTriggerResponse {
    /**
     * @return List of tags that can be used for describing the trigger.
     * 
     */
    private @Nullable List annotations;
    /**
     * @return The blob path must begin with the pattern provided for trigger to fire. For example, '/records/blobs/december/' will only fire the trigger for blobs in the december folder under the records container. At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith.
     * 
     */
    private @Nullable String blobPathBeginsWith;
    /**
     * @return The blob path must end with the pattern provided for trigger to fire. For example, 'december/boxes.csv' will only fire the trigger for blobs named boxes in a december folder. At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith.
     * 
     */
    private @Nullable String blobPathEndsWith;
    /**
     * @return Trigger description.
     * 
     */
    private @Nullable String description;
    /**
     * @return The type of events that cause this trigger to fire.
     * 
     */
    private List events;
    /**
     * @return If set to true, blobs with zero bytes will be ignored.
     * 
     */
    private @Nullable Boolean ignoreEmptyBlobs;
    /**
     * @return Pipelines that need to be started.
     * 
     */
    private @Nullable List pipelines;
    /**
     * @return Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger.
     * 
     */
    private String runtimeState;
    /**
     * @return The ARM resource ID of the Storage Account.
     * 
     */
    private String scope;
    /**
     * @return Trigger type.
     * Expected value is 'BlobEventsTrigger'.
     * 
     */
    private String type;

    private BlobEventsTriggerResponse() {}
    /**
     * @return List of tags that can be used for describing the trigger.
     * 
     */
    public List annotations() {
        return this.annotations == null ? List.of() : this.annotations;
    }
    /**
     * @return The blob path must begin with the pattern provided for trigger to fire. For example, '/records/blobs/december/' will only fire the trigger for blobs in the december folder under the records container. At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith.
     * 
     */
    public Optional blobPathBeginsWith() {
        return Optional.ofNullable(this.blobPathBeginsWith);
    }
    /**
     * @return The blob path must end with the pattern provided for trigger to fire. For example, 'december/boxes.csv' will only fire the trigger for blobs named boxes in a december folder. At least one of these must be provided: blobPathBeginsWith, blobPathEndsWith.
     * 
     */
    public Optional blobPathEndsWith() {
        return Optional.ofNullable(this.blobPathEndsWith);
    }
    /**
     * @return Trigger description.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return The type of events that cause this trigger to fire.
     * 
     */
    public List events() {
        return this.events;
    }
    /**
     * @return If set to true, blobs with zero bytes will be ignored.
     * 
     */
    public Optional ignoreEmptyBlobs() {
        return Optional.ofNullable(this.ignoreEmptyBlobs);
    }
    /**
     * @return Pipelines that need to be started.
     * 
     */
    public List pipelines() {
        return this.pipelines == null ? List.of() : this.pipelines;
    }
    /**
     * @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 The ARM resource ID of the Storage Account.
     * 
     */
    public String scope() {
        return this.scope;
    }
    /**
     * @return Trigger type.
     * Expected value is 'BlobEventsTrigger'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(BlobEventsTriggerResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List annotations;
        private @Nullable String blobPathBeginsWith;
        private @Nullable String blobPathEndsWith;
        private @Nullable String description;
        private List events;
        private @Nullable Boolean ignoreEmptyBlobs;
        private @Nullable List pipelines;
        private String runtimeState;
        private String scope;
        private String type;
        public Builder() {}
        public Builder(BlobEventsTriggerResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.annotations = defaults.annotations;
    	      this.blobPathBeginsWith = defaults.blobPathBeginsWith;
    	      this.blobPathEndsWith = defaults.blobPathEndsWith;
    	      this.description = defaults.description;
    	      this.events = defaults.events;
    	      this.ignoreEmptyBlobs = defaults.ignoreEmptyBlobs;
    	      this.pipelines = defaults.pipelines;
    	      this.runtimeState = defaults.runtimeState;
    	      this.scope = defaults.scope;
    	      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 blobPathBeginsWith(@Nullable String blobPathBeginsWith) {

            this.blobPathBeginsWith = blobPathBeginsWith;
            return this;
        }
        @CustomType.Setter
        public Builder blobPathEndsWith(@Nullable String blobPathEndsWith) {

            this.blobPathEndsWith = blobPathEndsWith;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder events(List events) {
            if (events == null) {
              throw new MissingRequiredPropertyException("BlobEventsTriggerResponse", "events");
            }
            this.events = events;
            return this;
        }
        public Builder events(String... events) {
            return events(List.of(events));
        }
        @CustomType.Setter
        public Builder ignoreEmptyBlobs(@Nullable Boolean ignoreEmptyBlobs) {

            this.ignoreEmptyBlobs = ignoreEmptyBlobs;
            return this;
        }
        @CustomType.Setter
        public Builder pipelines(@Nullable List pipelines) {

            this.pipelines = pipelines;
            return this;
        }
        public Builder pipelines(TriggerPipelineReferenceResponse... pipelines) {
            return pipelines(List.of(pipelines));
        }
        @CustomType.Setter
        public Builder runtimeState(String runtimeState) {
            if (runtimeState == null) {
              throw new MissingRequiredPropertyException("BlobEventsTriggerResponse", "runtimeState");
            }
            this.runtimeState = runtimeState;
            return this;
        }
        @CustomType.Setter
        public Builder scope(String scope) {
            if (scope == null) {
              throw new MissingRequiredPropertyException("BlobEventsTriggerResponse", "scope");
            }
            this.scope = scope;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("BlobEventsTriggerResponse", "type");
            }
            this.type = type;
            return this;
        }
        public BlobEventsTriggerResponse build() {
            final var _resultValue = new BlobEventsTriggerResponse();
            _resultValue.annotations = annotations;
            _resultValue.blobPathBeginsWith = blobPathBeginsWith;
            _resultValue.blobPathEndsWith = blobPathEndsWith;
            _resultValue.description = description;
            _resultValue.events = events;
            _resultValue.ignoreEmptyBlobs = ignoreEmptyBlobs;
            _resultValue.pipelines = pipelines;
            _resultValue.runtimeState = runtimeState;
            _resultValue.scope = scope;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}