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

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

There is a newer version: 2.89.2
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.inputs.DynamicDeliveryAttributeMappingArgs;
import com.pulumi.azurenative.eventgrid.inputs.StaticDeliveryAttributeMappingArgs;
import com.pulumi.core.Either;
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.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Information about the service bus destination for an event subscription.
 * 
 */
public final class ServiceBusQueueEventSubscriptionDestinationArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServiceBusQueueEventSubscriptionDestinationArgs Empty = new ServiceBusQueueEventSubscriptionDestinationArgs();

    /**
     * Delivery attribute details.
     * 
     */
    @Import(name="deliveryAttributeMappings")
    private @Nullable Output>> deliveryAttributeMappings;

    /**
     * @return Delivery attribute details.
     * 
     */
    public Optional>>> deliveryAttributeMappings() {
        return Optional.ofNullable(this.deliveryAttributeMappings);
    }

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

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

    /**
     * The Azure Resource Id that represents the endpoint of the Service Bus destination of an event subscription.
     * 
     */
    @Import(name="resourceId")
    private @Nullable Output resourceId;

    /**
     * @return The Azure Resource Id that represents the endpoint of the Service Bus destination of an event subscription.
     * 
     */
    public Optional> resourceId() {
        return Optional.ofNullable(this.resourceId);
    }

    private ServiceBusQueueEventSubscriptionDestinationArgs() {}

    private ServiceBusQueueEventSubscriptionDestinationArgs(ServiceBusQueueEventSubscriptionDestinationArgs $) {
        this.deliveryAttributeMappings = $.deliveryAttributeMappings;
        this.endpointType = $.endpointType;
        this.resourceId = $.resourceId;
    }

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

    public static final class Builder {
        private ServiceBusQueueEventSubscriptionDestinationArgs $;

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

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

        /**
         * @param deliveryAttributeMappings Delivery attribute details.
         * 
         * @return builder
         * 
         */
        public Builder deliveryAttributeMappings(@Nullable Output>> deliveryAttributeMappings) {
            $.deliveryAttributeMappings = deliveryAttributeMappings;
            return this;
        }

        /**
         * @param deliveryAttributeMappings Delivery attribute details.
         * 
         * @return builder
         * 
         */
        public Builder deliveryAttributeMappings(List> deliveryAttributeMappings) {
            return deliveryAttributeMappings(Output.of(deliveryAttributeMappings));
        }

        /**
         * @param deliveryAttributeMappings Delivery attribute details.
         * 
         * @return builder
         * 
         */
        public Builder deliveryAttributeMappings(Either... deliveryAttributeMappings) {
            return deliveryAttributeMappings(List.of(deliveryAttributeMappings));
        }

        /**
         * @param endpointType Type of the endpoint for the event subscription destination.
         * Expected value is 'ServiceBusQueue'.
         * 
         * @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 'ServiceBusQueue'.
         * 
         * @return builder
         * 
         */
        public Builder endpointType(String endpointType) {
            return endpointType(Output.of(endpointType));
        }

        /**
         * @param resourceId The Azure Resource Id that represents the endpoint of the Service Bus destination of an event subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(@Nullable Output resourceId) {
            $.resourceId = resourceId;
            return this;
        }

        /**
         * @param resourceId The Azure Resource Id that represents the endpoint of the Service Bus destination of an event subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(String resourceId) {
            return resourceId(Output.of(resourceId));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy