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

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

// *** 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.DynamicDeliveryAttributeMappingResponse;
import com.pulumi.azurenative.eventgrid.outputs.StaticDeliveryAttributeMappingResponse;
import com.pulumi.core.Either;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AzureFunctionEventSubscriptionDestinationResponse {
    /**
     * @return Delivery attribute details.
     * 
     */
    private @Nullable List> deliveryAttributeMappings;
    /**
     * @return Type of the endpoint for the event subscription destination.
     * Expected value is 'AzureFunction'.
     * 
     */
    private String endpointType;
    /**
     * @return Maximum number of events per batch.
     * 
     */
    private @Nullable Integer maxEventsPerBatch;
    /**
     * @return Preferred batch size in Kilobytes.
     * 
     */
    private @Nullable Integer preferredBatchSizeInKilobytes;
    /**
     * @return The Azure Resource Id that represents the endpoint of the Azure Function destination of an event subscription.
     * 
     */
    private @Nullable String resourceId;

    private AzureFunctionEventSubscriptionDestinationResponse() {}
    /**
     * @return Delivery attribute details.
     * 
     */
    public List> deliveryAttributeMappings() {
        return this.deliveryAttributeMappings == null ? List.of() : this.deliveryAttributeMappings;
    }
    /**
     * @return Type of the endpoint for the event subscription destination.
     * Expected value is 'AzureFunction'.
     * 
     */
    public String endpointType() {
        return this.endpointType;
    }
    /**
     * @return Maximum number of events per batch.
     * 
     */
    public Optional maxEventsPerBatch() {
        return Optional.ofNullable(this.maxEventsPerBatch);
    }
    /**
     * @return Preferred batch size in Kilobytes.
     * 
     */
    public Optional preferredBatchSizeInKilobytes() {
        return Optional.ofNullable(this.preferredBatchSizeInKilobytes);
    }
    /**
     * @return The Azure Resource Id that represents the endpoint of the Azure Function destination of an event subscription.
     * 
     */
    public Optional resourceId() {
        return Optional.ofNullable(this.resourceId);
    }

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

    public static Builder builder(AzureFunctionEventSubscriptionDestinationResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List> deliveryAttributeMappings;
        private String endpointType;
        private @Nullable Integer maxEventsPerBatch;
        private @Nullable Integer preferredBatchSizeInKilobytes;
        private @Nullable String resourceId;
        public Builder() {}
        public Builder(AzureFunctionEventSubscriptionDestinationResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.deliveryAttributeMappings = defaults.deliveryAttributeMappings;
    	      this.endpointType = defaults.endpointType;
    	      this.maxEventsPerBatch = defaults.maxEventsPerBatch;
    	      this.preferredBatchSizeInKilobytes = defaults.preferredBatchSizeInKilobytes;
    	      this.resourceId = defaults.resourceId;
        }

        @CustomType.Setter
        public Builder deliveryAttributeMappings(@Nullable List> deliveryAttributeMappings) {

            this.deliveryAttributeMappings = deliveryAttributeMappings;
            return this;
        }
        public Builder deliveryAttributeMappings(Either... deliveryAttributeMappings) {
            return deliveryAttributeMappings(List.of(deliveryAttributeMappings));
        }
        @CustomType.Setter
        public Builder endpointType(String endpointType) {
            if (endpointType == null) {
              throw new MissingRequiredPropertyException("AzureFunctionEventSubscriptionDestinationResponse", "endpointType");
            }
            this.endpointType = endpointType;
            return this;
        }
        @CustomType.Setter
        public Builder maxEventsPerBatch(@Nullable Integer maxEventsPerBatch) {

            this.maxEventsPerBatch = maxEventsPerBatch;
            return this;
        }
        @CustomType.Setter
        public Builder preferredBatchSizeInKilobytes(@Nullable Integer preferredBatchSizeInKilobytes) {

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

            this.resourceId = resourceId;
            return this;
        }
        public AzureFunctionEventSubscriptionDestinationResponse build() {
            final var _resultValue = new AzureFunctionEventSubscriptionDestinationResponse();
            _resultValue.deliveryAttributeMappings = deliveryAttributeMappings;
            _resultValue.endpointType = endpointType;
            _resultValue.maxEventsPerBatch = maxEventsPerBatch;
            _resultValue.preferredBatchSizeInKilobytes = preferredBatchSizeInKilobytes;
            _resultValue.resourceId = resourceId;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy