com.pulumi.azure.eventgrid.outputs.SystemTopicEventSubscriptionRetryPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.eventgrid.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.util.Objects;
@CustomType
public final class SystemTopicEventSubscriptionRetryPolicy {
/**
* @return Specifies the time to live (in minutes) for events. Supported range is `1` to `1440`. See [official documentation](https://docs.microsoft.com/azure/event-grid/manage-event-delivery#set-retry-policy) for more details.
*
*/
private Integer eventTimeToLive;
/**
* @return Specifies the maximum number of delivery retry attempts for events.
*
*/
private Integer maxDeliveryAttempts;
private SystemTopicEventSubscriptionRetryPolicy() {}
/**
* @return Specifies the time to live (in minutes) for events. Supported range is `1` to `1440`. See [official documentation](https://docs.microsoft.com/azure/event-grid/manage-event-delivery#set-retry-policy) for more details.
*
*/
public Integer eventTimeToLive() {
return this.eventTimeToLive;
}
/**
* @return Specifies the maximum number of delivery retry attempts for events.
*
*/
public Integer maxDeliveryAttempts() {
return this.maxDeliveryAttempts;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SystemTopicEventSubscriptionRetryPolicy defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer eventTimeToLive;
private Integer maxDeliveryAttempts;
public Builder() {}
public Builder(SystemTopicEventSubscriptionRetryPolicy defaults) {
Objects.requireNonNull(defaults);
this.eventTimeToLive = defaults.eventTimeToLive;
this.maxDeliveryAttempts = defaults.maxDeliveryAttempts;
}
@CustomType.Setter
public Builder eventTimeToLive(Integer eventTimeToLive) {
if (eventTimeToLive == null) {
throw new MissingRequiredPropertyException("SystemTopicEventSubscriptionRetryPolicy", "eventTimeToLive");
}
this.eventTimeToLive = eventTimeToLive;
return this;
}
@CustomType.Setter
public Builder maxDeliveryAttempts(Integer maxDeliveryAttempts) {
if (maxDeliveryAttempts == null) {
throw new MissingRequiredPropertyException("SystemTopicEventSubscriptionRetryPolicy", "maxDeliveryAttempts");
}
this.maxDeliveryAttempts = maxDeliveryAttempts;
return this;
}
public SystemTopicEventSubscriptionRetryPolicy build() {
final var _resultValue = new SystemTopicEventSubscriptionRetryPolicy();
_resultValue.eventTimeToLive = eventTimeToLive;
_resultValue.maxDeliveryAttempts = maxDeliveryAttempts;
return _resultValue;
}
}
}