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

com.pulumi.azurenative.eventgrid.outputs.GetEventSubscriptionResult Maven / Gradle / Ivy

There is a newer version: 2.82.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.DeadLetterWithResourceIdentityResponse;
import com.pulumi.azurenative.eventgrid.outputs.DeliveryWithResourceIdentityResponse;
import com.pulumi.azurenative.eventgrid.outputs.EventHubEventSubscriptionDestinationResponse;
import com.pulumi.azurenative.eventgrid.outputs.EventSubscriptionFilterResponse;
import com.pulumi.azurenative.eventgrid.outputs.HybridConnectionEventSubscriptionDestinationResponse;
import com.pulumi.azurenative.eventgrid.outputs.RetryPolicyResponse;
import com.pulumi.azurenative.eventgrid.outputs.ServiceBusQueueEventSubscriptionDestinationResponse;
import com.pulumi.azurenative.eventgrid.outputs.ServiceBusTopicEventSubscriptionDestinationResponse;
import com.pulumi.azurenative.eventgrid.outputs.StorageBlobDeadLetterDestinationResponse;
import com.pulumi.azurenative.eventgrid.outputs.StorageQueueEventSubscriptionDestinationResponse;
import com.pulumi.azurenative.eventgrid.outputs.SystemDataResponse;
import com.pulumi.azurenative.eventgrid.outputs.WebHookEventSubscriptionDestinationResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetEventSubscriptionResult {
    /**
     * @return The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination.
     * Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
     * 
     */
    private @Nullable StorageBlobDeadLetterDestinationResponse deadLetterDestination;
    /**
     * @return The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination.
     * Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
     * 
     */
    private @Nullable DeadLetterWithResourceIdentityResponse deadLetterWithResourceIdentity;
    /**
     * @return Information about the destination where events have to be delivered for the event subscription.
     * Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
     * 
     */
    private @Nullable DeliveryWithResourceIdentityResponse deliveryWithResourceIdentity;
    /**
     * @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 event delivery schema for the event subscription.
     * 
     */
    private @Nullable String eventDeliverySchema;
    /**
     * @return Expiration time of the event subscription.
     * 
     */
    private @Nullable String expirationTimeUtc;
    /**
     * @return Information about the filter for the event subscription.
     * 
     */
    private @Nullable EventSubscriptionFilterResponse filter;
    /**
     * @return Fully qualified identifier of the resource.
     * 
     */
    private String id;
    /**
     * @return List of user defined labels.
     * 
     */
    private @Nullable List labels;
    /**
     * @return Name of the resource.
     * 
     */
    private String name;
    /**
     * @return Provisioning state of the event subscription.
     * 
     */
    private String provisioningState;
    /**
     * @return The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events.
     * 
     */
    private @Nullable RetryPolicyResponse retryPolicy;
    /**
     * @return The system metadata relating to Event Subscription resource.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Name of the topic of the event subscription.
     * 
     */
    private String topic;
    /**
     * @return Type of the resource.
     * 
     */
    private String type;

    private GetEventSubscriptionResult() {}
    /**
     * @return The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination.
     * Uses Azure Event Grid's identity to acquire the authentication tokens being used during delivery / dead-lettering.
     * 
     */
    public Optional deadLetterDestination() {
        return Optional.ofNullable(this.deadLetterDestination);
    }
    /**
     * @return The dead letter destination of the event subscription. Any event that cannot be delivered to its' destination is sent to the dead letter destination.
     * Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
     * 
     */
    public Optional deadLetterWithResourceIdentity() {
        return Optional.ofNullable(this.deadLetterWithResourceIdentity);
    }
    /**
     * @return Information about the destination where events have to be delivered for the event subscription.
     * Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire the authentication tokens being used during delivery / dead-lettering.
     * 
     */
    public Optional deliveryWithResourceIdentity() {
        return Optional.ofNullable(this.deliveryWithResourceIdentity);
    }
    /**
     * @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 event delivery schema for the event subscription.
     * 
     */
    public Optional eventDeliverySchema() {
        return Optional.ofNullable(this.eventDeliverySchema);
    }
    /**
     * @return Expiration time of the event subscription.
     * 
     */
    public Optional expirationTimeUtc() {
        return Optional.ofNullable(this.expirationTimeUtc);
    }
    /**
     * @return Information about the filter for the event subscription.
     * 
     */
    public Optional filter() {
        return Optional.ofNullable(this.filter);
    }
    /**
     * @return Fully qualified identifier of the resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return List of user defined labels.
     * 
     */
    public List labels() {
        return this.labels == null ? List.of() : this.labels;
    }
    /**
     * @return Name of the resource.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Provisioning state of the event subscription.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events.
     * 
     */
    public Optional retryPolicy() {
        return Optional.ofNullable(this.retryPolicy);
    }
    /**
     * @return The system metadata relating to Event Subscription resource.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Name of the topic of the event subscription.
     * 
     */
    public String topic() {
        return this.topic;
    }
    /**
     * @return Type of the resource.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetEventSubscriptionResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable StorageBlobDeadLetterDestinationResponse deadLetterDestination;
        private @Nullable DeadLetterWithResourceIdentityResponse deadLetterWithResourceIdentity;
        private @Nullable DeliveryWithResourceIdentityResponse deliveryWithResourceIdentity;
        private @Nullable Object destination;
        private @Nullable String eventDeliverySchema;
        private @Nullable String expirationTimeUtc;
        private @Nullable EventSubscriptionFilterResponse filter;
        private String id;
        private @Nullable List labels;
        private String name;
        private String provisioningState;
        private @Nullable RetryPolicyResponse retryPolicy;
        private SystemDataResponse systemData;
        private String topic;
        private String type;
        public Builder() {}
        public Builder(GetEventSubscriptionResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.deadLetterDestination = defaults.deadLetterDestination;
    	      this.deadLetterWithResourceIdentity = defaults.deadLetterWithResourceIdentity;
    	      this.deliveryWithResourceIdentity = defaults.deliveryWithResourceIdentity;
    	      this.destination = defaults.destination;
    	      this.eventDeliverySchema = defaults.eventDeliverySchema;
    	      this.expirationTimeUtc = defaults.expirationTimeUtc;
    	      this.filter = defaults.filter;
    	      this.id = defaults.id;
    	      this.labels = defaults.labels;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.retryPolicy = defaults.retryPolicy;
    	      this.systemData = defaults.systemData;
    	      this.topic = defaults.topic;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder deadLetterDestination(@Nullable StorageBlobDeadLetterDestinationResponse deadLetterDestination) {

            this.deadLetterDestination = deadLetterDestination;
            return this;
        }
        @CustomType.Setter
        public Builder deadLetterWithResourceIdentity(@Nullable DeadLetterWithResourceIdentityResponse deadLetterWithResourceIdentity) {

            this.deadLetterWithResourceIdentity = deadLetterWithResourceIdentity;
            return this;
        }
        @CustomType.Setter
        public Builder deliveryWithResourceIdentity(@Nullable DeliveryWithResourceIdentityResponse deliveryWithResourceIdentity) {

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

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

            this.eventDeliverySchema = eventDeliverySchema;
            return this;
        }
        @CustomType.Setter
        public Builder expirationTimeUtc(@Nullable String expirationTimeUtc) {

            this.expirationTimeUtc = expirationTimeUtc;
            return this;
        }
        @CustomType.Setter
        public Builder filter(@Nullable EventSubscriptionFilterResponse filter) {

            this.filter = filter;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetEventSubscriptionResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder labels(@Nullable List labels) {

            this.labels = labels;
            return this;
        }
        public Builder labels(String... labels) {
            return labels(List.of(labels));
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetEventSubscriptionResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetEventSubscriptionResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder retryPolicy(@Nullable RetryPolicyResponse retryPolicy) {

            this.retryPolicy = retryPolicy;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetEventSubscriptionResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder topic(String topic) {
            if (topic == null) {
              throw new MissingRequiredPropertyException("GetEventSubscriptionResult", "topic");
            }
            this.topic = topic;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetEventSubscriptionResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetEventSubscriptionResult build() {
            final var _resultValue = new GetEventSubscriptionResult();
            _resultValue.deadLetterDestination = deadLetterDestination;
            _resultValue.deadLetterWithResourceIdentity = deadLetterWithResourceIdentity;
            _resultValue.deliveryWithResourceIdentity = deliveryWithResourceIdentity;
            _resultValue.destination = destination;
            _resultValue.eventDeliverySchema = eventDeliverySchema;
            _resultValue.expirationTimeUtc = expirationTimeUtc;
            _resultValue.filter = filter;
            _resultValue.id = id;
            _resultValue.labels = labels;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.retryPolicy = retryPolicy;
            _resultValue.systemData = systemData;
            _resultValue.topic = topic;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}