// *** 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.pubsub.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;


public final class LiteSubscriptionDeliveryConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final LiteSubscriptionDeliveryConfigArgs Empty = new LiteSubscriptionDeliveryConfigArgs();

    /**
     * When this subscription should send messages to subscribers relative to messages persistence in storage.
     * Possible values are: `DELIVER_IMMEDIATELY`, `DELIVER_AFTER_STORED`, `DELIVERY_REQUIREMENT_UNSPECIFIED`.
     * 
     */
    @Import(name="deliveryRequirement", required=true)
    private Output<String> deliveryRequirement;

    /**
     * @return When this subscription should send messages to subscribers relative to messages persistence in storage.
     * Possible values are: `DELIVER_IMMEDIATELY`, `DELIVER_AFTER_STORED`, `DELIVERY_REQUIREMENT_UNSPECIFIED`.
     * 
     */
    public Output<String> deliveryRequirement() {
        return this.deliveryRequirement;
    }

    private LiteSubscriptionDeliveryConfigArgs() {}

    private LiteSubscriptionDeliveryConfigArgs(LiteSubscriptionDeliveryConfigArgs $) {
        this.deliveryRequirement = $.deliveryRequirement;
    }

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

    public static final class Builder {
        private LiteSubscriptionDeliveryConfigArgs $;

        public Builder() {
            $ = new LiteSubscriptionDeliveryConfigArgs();
        }

        public Builder(LiteSubscriptionDeliveryConfigArgs defaults) {
            $ = new LiteSubscriptionDeliveryConfigArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param deliveryRequirement When this subscription should send messages to subscribers relative to messages persistence in storage.
         * Possible values are: `DELIVER_IMMEDIATELY`, `DELIVER_AFTER_STORED`, `DELIVERY_REQUIREMENT_UNSPECIFIED`.
         * 
         * @return builder
         * 
         */
        public Builder deliveryRequirement(Output<String> deliveryRequirement) {
            $.deliveryRequirement = deliveryRequirement;
            return this;
        }

        /**
         * @param deliveryRequirement When this subscription should send messages to subscribers relative to messages persistence in storage.
         * Possible values are: `DELIVER_IMMEDIATELY`, `DELIVER_AFTER_STORED`, `DELIVERY_REQUIREMENT_UNSPECIFIED`.
         * 
         * @return builder
         * 
         */
        public Builder deliveryRequirement(String deliveryRequirement) {
            return deliveryRequirement(Output.of(deliveryRequirement));
        }

        public LiteSubscriptionDeliveryConfigArgs build() {
            $.deliveryRequirement = Objects.requireNonNull($.deliveryRequirement, "expected parameter 'deliveryRequirement' to be non-null");
            return $;
        }
    }

}
