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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.eventarc.outputs.TriggerTransportPubsub;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class TriggerTransport {
    /**
     * @return The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.
     * 
     */
    private @Nullable List<TriggerTransportPubsub> pubsubs;

    private TriggerTransport() {}
    /**
     * @return The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.
     * 
     */
    public List<TriggerTransportPubsub> pubsubs() {
        return this.pubsubs == null ? List.of() : this.pubsubs;
    }

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

    public static Builder builder(TriggerTransport defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List<TriggerTransportPubsub> pubsubs;
        public Builder() {}
        public Builder(TriggerTransport defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.pubsubs = defaults.pubsubs;
        }

        @CustomType.Setter
        public Builder pubsubs(@Nullable List<TriggerTransportPubsub> pubsubs) {
            this.pubsubs = pubsubs;
            return this;
        }
        public Builder pubsubs(TriggerTransportPubsub... pubsubs) {
            return pubsubs(List.of(pubsubs));
        }
        public TriggerTransport build() {
            final var o = new TriggerTransport();
            o.pubsubs = pubsubs;
            return o;
        }
    }
}
