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

com.pulumi.azurenative.eventgrid.outputs.DeliveryWithResourceIdentityResponse 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.outputs;

import com.pulumi.azurenative.eventgrid.outputs.AzureFunctionEventSubscriptionDestinationResponse;
import com.pulumi.azurenative.eventgrid.outputs.EventHubEventSubscriptionDestinationResponse;
import com.pulumi.azurenative.eventgrid.outputs.EventSubscriptionIdentityResponse;
import com.pulumi.azurenative.eventgrid.outputs.HybridConnectionEventSubscriptionDestinationResponse;
import com.pulumi.azurenative.eventgrid.outputs.ServiceBusQueueEventSubscriptionDestinationResponse;
import com.pulumi.azurenative.eventgrid.outputs.ServiceBusTopicEventSubscriptionDestinationResponse;
import com.pulumi.azurenative.eventgrid.outputs.StorageQueueEventSubscriptionDestinationResponse;
import com.pulumi.azurenative.eventgrid.outputs.WebHookEventSubscriptionDestinationResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Object;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DeliveryWithResourceIdentityResponse {
    /**
     * @return Information about the destination where events have to be delivered for the event subscription.
     * Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
     * 
     */
    private @Nullable Object destination;
    /**
     * @return The identity to use when delivering events.
     * 
     */
    private @Nullable EventSubscriptionIdentityResponse identity;

    private DeliveryWithResourceIdentityResponse() {}
    /**
     * @return Information about the destination where events have to be delivered for the event subscription.
     * Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
     * 
     */
    public Optional destination() {
        return Optional.ofNullable(this.destination);
    }
    /**
     * @return The identity to use when delivering events.
     * 
     */
    public Optional identity() {
        return Optional.ofNullable(this.identity);
    }

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

    public static Builder builder(DeliveryWithResourceIdentityResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Object destination;
        private @Nullable EventSubscriptionIdentityResponse identity;
        public Builder() {}
        public Builder(DeliveryWithResourceIdentityResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.destination = defaults.destination;
    	      this.identity = defaults.identity;
        }

        @CustomType.Setter
        public Builder destination(@Nullable Object destination) {

            this.destination = destination;
            return this;
        }
        @CustomType.Setter
        public Builder identity(@Nullable EventSubscriptionIdentityResponse identity) {

            this.identity = identity;
            return this;
        }
        public DeliveryWithResourceIdentityResponse build() {
            final var _resultValue = new DeliveryWithResourceIdentityResponse();
            _resultValue.destination = destination;
            _resultValue.identity = identity;
            return _resultValue;
        }
    }
}