
com.pulumi.azurenative.eventgrid.outputs.ServiceBusQueueEventSubscriptionDestinationResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ServiceBusQueueEventSubscriptionDestinationResponse {
/**
* @return Delivery attribute details.
*
*/
private @Nullable List> deliveryAttributeMappings;
/**
* @return Type of the endpoint for the event subscription destination.
* Expected value is 'ServiceBusQueue'.
*
*/
private String endpointType;
/**
* @return The Azure Resource Id that represents the endpoint of the Service Bus destination of an event subscription.
*
*/
private @Nullable String resourceId;
private ServiceBusQueueEventSubscriptionDestinationResponse() {}
/**
* @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 'ServiceBusQueue'.
*
*/
public String endpointType() {
return this.endpointType;
}
/**
* @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);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ServiceBusQueueEventSubscriptionDestinationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List> deliveryAttributeMappings;
private String endpointType;
private @Nullable String resourceId;
public Builder() {}
public Builder(ServiceBusQueueEventSubscriptionDestinationResponse defaults) {
Objects.requireNonNull(defaults);
this.deliveryAttributeMappings = defaults.deliveryAttributeMappings;
this.endpointType = defaults.endpointType;
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("ServiceBusQueueEventSubscriptionDestinationResponse", "endpointType");
}
this.endpointType = endpointType;
return this;
}
@CustomType.Setter
public Builder resourceId(@Nullable String resourceId) {
this.resourceId = resourceId;
return this;
}
public ServiceBusQueueEventSubscriptionDestinationResponse build() {
final var _resultValue = new ServiceBusQueueEventSubscriptionDestinationResponse();
_resultValue.deliveryAttributeMappings = deliveryAttributeMappings;
_resultValue.endpointType = endpointType;
_resultValue.resourceId = resourceId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy