com.pulumi.aws.cloudwatch.outputs.EventTargetRetryPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.cloudwatch.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class EventTargetRetryPolicy {
/**
* @return The age in seconds to continue to make retry attempts.
*
*/
private @Nullable Integer maximumEventAgeInSeconds;
/**
* @return maximum number of retry attempts to make before the request fails
*
*/
private @Nullable Integer maximumRetryAttempts;
private EventTargetRetryPolicy() {}
/**
* @return The age in seconds to continue to make retry attempts.
*
*/
public Optional maximumEventAgeInSeconds() {
return Optional.ofNullable(this.maximumEventAgeInSeconds);
}
/**
* @return maximum number of retry attempts to make before the request fails
*
*/
public Optional maximumRetryAttempts() {
return Optional.ofNullable(this.maximumRetryAttempts);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EventTargetRetryPolicy defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer maximumEventAgeInSeconds;
private @Nullable Integer maximumRetryAttempts;
public Builder() {}
public Builder(EventTargetRetryPolicy defaults) {
Objects.requireNonNull(defaults);
this.maximumEventAgeInSeconds = defaults.maximumEventAgeInSeconds;
this.maximumRetryAttempts = defaults.maximumRetryAttempts;
}
@CustomType.Setter
public Builder maximumEventAgeInSeconds(@Nullable Integer maximumEventAgeInSeconds) {
this.maximumEventAgeInSeconds = maximumEventAgeInSeconds;
return this;
}
@CustomType.Setter
public Builder maximumRetryAttempts(@Nullable Integer maximumRetryAttempts) {
this.maximumRetryAttempts = maximumRetryAttempts;
return this;
}
public EventTargetRetryPolicy build() {
final var _resultValue = new EventTargetRetryPolicy();
_resultValue.maximumEventAgeInSeconds = maximumEventAgeInSeconds;
_resultValue.maximumRetryAttempts = maximumRetryAttempts;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy