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

com.pulumi.azurenative.eventgrid.inputs.DeliveryConfigurationArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.eventgrid.inputs;

import com.pulumi.azurenative.eventgrid.enums.DeliveryMode;
import com.pulumi.azurenative.eventgrid.inputs.QueueInfoArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Properties of the delivery configuration information of the event subscription.
 * 
 */
public final class DeliveryConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final DeliveryConfigurationArgs Empty = new DeliveryConfigurationArgs();

    /**
     * Delivery mode of the event subscription.
     * 
     */
    @Import(name="deliveryMode")
    private @Nullable Output> deliveryMode;

    /**
     * @return Delivery mode of the event subscription.
     * 
     */
    public Optional>> deliveryMode() {
        return Optional.ofNullable(this.deliveryMode);
    }

    /**
     * This property should be populated when deliveryMode is queue and represents information about the queue subscription.
     * 
     */
    @Import(name="queue")
    private @Nullable Output queue;

    /**
     * @return This property should be populated when deliveryMode is queue and represents information about the queue subscription.
     * 
     */
    public Optional> queue() {
        return Optional.ofNullable(this.queue);
    }

    private DeliveryConfigurationArgs() {}

    private DeliveryConfigurationArgs(DeliveryConfigurationArgs $) {
        this.deliveryMode = $.deliveryMode;
        this.queue = $.queue;
    }

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

    public static final class Builder {
        private DeliveryConfigurationArgs $;

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

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

        /**
         * @param deliveryMode Delivery mode of the event subscription.
         * 
         * @return builder
         * 
         */
        public Builder deliveryMode(@Nullable Output> deliveryMode) {
            $.deliveryMode = deliveryMode;
            return this;
        }

        /**
         * @param deliveryMode Delivery mode of the event subscription.
         * 
         * @return builder
         * 
         */
        public Builder deliveryMode(Either deliveryMode) {
            return deliveryMode(Output.of(deliveryMode));
        }

        /**
         * @param deliveryMode Delivery mode of the event subscription.
         * 
         * @return builder
         * 
         */
        public Builder deliveryMode(String deliveryMode) {
            return deliveryMode(Either.ofLeft(deliveryMode));
        }

        /**
         * @param deliveryMode Delivery mode of the event subscription.
         * 
         * @return builder
         * 
         */
        public Builder deliveryMode(DeliveryMode deliveryMode) {
            return deliveryMode(Either.ofRight(deliveryMode));
        }

        /**
         * @param queue This property should be populated when deliveryMode is queue and represents information about the queue subscription.
         * 
         * @return builder
         * 
         */
        public Builder queue(@Nullable Output queue) {
            $.queue = queue;
            return this;
        }

        /**
         * @param queue This property should be populated when deliveryMode is queue and represents information about the queue subscription.
         * 
         * @return builder
         * 
         */
        public Builder queue(QueueInfoArgs queue) {
            return queue(Output.of(queue));
        }

        public DeliveryConfigurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy