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

com.pulumi.aws.glue.outputs.TriggerPredicate Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.glue.outputs;

import com.pulumi.aws.glue.outputs.TriggerPredicateCondition;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class TriggerPredicate {
    /**
     * @return A list of the conditions that determine when the trigger will fire. See Conditions.
     * 
     */
    private List conditions;
    /**
     * @return How to handle multiple conditions. Defaults to `AND`. Valid values are `AND` or `ANY`.
     * 
     */
    private @Nullable String logical;

    private TriggerPredicate() {}
    /**
     * @return A list of the conditions that determine when the trigger will fire. See Conditions.
     * 
     */
    public List conditions() {
        return this.conditions;
    }
    /**
     * @return How to handle multiple conditions. Defaults to `AND`. Valid values are `AND` or `ANY`.
     * 
     */
    public Optional logical() {
        return Optional.ofNullable(this.logical);
    }

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

    public static Builder builder(TriggerPredicate defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List conditions;
        private @Nullable String logical;
        public Builder() {}
        public Builder(TriggerPredicate defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.conditions = defaults.conditions;
    	      this.logical = defaults.logical;
        }

        @CustomType.Setter
        public Builder conditions(List conditions) {
            if (conditions == null) {
              throw new MissingRequiredPropertyException("TriggerPredicate", "conditions");
            }
            this.conditions = conditions;
            return this;
        }
        public Builder conditions(TriggerPredicateCondition... conditions) {
            return conditions(List.of(conditions));
        }
        @CustomType.Setter
        public Builder logical(@Nullable String logical) {

            this.logical = logical;
            return this;
        }
        public TriggerPredicate build() {
            final var _resultValue = new TriggerPredicate();
            _resultValue.conditions = conditions;
            _resultValue.logical = logical;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy