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

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

There is a newer version: 2.72.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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Information about the storage queue destination for an event subscription.
 * 
 */
public final class StorageQueueEventSubscriptionDestinationArgs extends com.pulumi.resources.ResourceArgs {

    public static final StorageQueueEventSubscriptionDestinationArgs Empty = new StorageQueueEventSubscriptionDestinationArgs();

    /**
     * Type of the endpoint for the event subscription destination.
     * Expected value is 'StorageQueue'.
     * 
     */
    @Import(name="endpointType", required=true)
    private Output endpointType;

    /**
     * @return Type of the endpoint for the event subscription destination.
     * Expected value is 'StorageQueue'.
     * 
     */
    public Output endpointType() {
        return this.endpointType;
    }

    /**
     * Storage queue message time to live in seconds.
     * 
     */
    @Import(name="queueMessageTimeToLiveInSeconds")
    private @Nullable Output queueMessageTimeToLiveInSeconds;

    /**
     * @return Storage queue message time to live in seconds.
     * 
     */
    public Optional> queueMessageTimeToLiveInSeconds() {
        return Optional.ofNullable(this.queueMessageTimeToLiveInSeconds);
    }

    /**
     * The name of the Storage queue under a storage account that is the destination of an event subscription.
     * 
     */
    @Import(name="queueName")
    private @Nullable Output queueName;

    /**
     * @return The name of the Storage queue under a storage account that is the destination of an event subscription.
     * 
     */
    public Optional> queueName() {
        return Optional.ofNullable(this.queueName);
    }

    /**
     * The Azure Resource ID of the storage account that contains the queue that is the destination of an event subscription.
     * 
     */
    @Import(name="resourceId")
    private @Nullable Output resourceId;

    /**
     * @return The Azure Resource ID of the storage account that contains the queue that is the destination of an event subscription.
     * 
     */
    public Optional> resourceId() {
        return Optional.ofNullable(this.resourceId);
    }

    private StorageQueueEventSubscriptionDestinationArgs() {}

    private StorageQueueEventSubscriptionDestinationArgs(StorageQueueEventSubscriptionDestinationArgs $) {
        this.endpointType = $.endpointType;
        this.queueMessageTimeToLiveInSeconds = $.queueMessageTimeToLiveInSeconds;
        this.queueName = $.queueName;
        this.resourceId = $.resourceId;
    }

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

    public static final class Builder {
        private StorageQueueEventSubscriptionDestinationArgs $;

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

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

        /**
         * @param endpointType Type of the endpoint for the event subscription destination.
         * Expected value is 'StorageQueue'.
         * 
         * @return builder
         * 
         */
        public Builder endpointType(Output endpointType) {
            $.endpointType = endpointType;
            return this;
        }

        /**
         * @param endpointType Type of the endpoint for the event subscription destination.
         * Expected value is 'StorageQueue'.
         * 
         * @return builder
         * 
         */
        public Builder endpointType(String endpointType) {
            return endpointType(Output.of(endpointType));
        }

        /**
         * @param queueMessageTimeToLiveInSeconds Storage queue message time to live in seconds.
         * 
         * @return builder
         * 
         */
        public Builder queueMessageTimeToLiveInSeconds(@Nullable Output queueMessageTimeToLiveInSeconds) {
            $.queueMessageTimeToLiveInSeconds = queueMessageTimeToLiveInSeconds;
            return this;
        }

        /**
         * @param queueMessageTimeToLiveInSeconds Storage queue message time to live in seconds.
         * 
         * @return builder
         * 
         */
        public Builder queueMessageTimeToLiveInSeconds(Double queueMessageTimeToLiveInSeconds) {
            return queueMessageTimeToLiveInSeconds(Output.of(queueMessageTimeToLiveInSeconds));
        }

        /**
         * @param queueName The name of the Storage queue under a storage account that is the destination of an event subscription.
         * 
         * @return builder
         * 
         */
        public Builder queueName(@Nullable Output queueName) {
            $.queueName = queueName;
            return this;
        }

        /**
         * @param queueName The name of the Storage queue under a storage account that is the destination of an event subscription.
         * 
         * @return builder
         * 
         */
        public Builder queueName(String queueName) {
            return queueName(Output.of(queueName));
        }

        /**
         * @param resourceId The Azure Resource ID of the storage account that contains the queue that is the destination of an event subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(@Nullable Output resourceId) {
            $.resourceId = resourceId;
            return this;
        }

        /**
         * @param resourceId The Azure Resource ID of the storage account that contains the queue that is the destination of an event subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(String resourceId) {
            return resourceId(Output.of(resourceId));
        }

        public StorageQueueEventSubscriptionDestinationArgs build() {
            $.endpointType = Codegen.stringProp("endpointType").output().arg($.endpointType).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy