com.pulumi.googlenative.integrations.v1alpha.outputs.GoogleCloudIntegrationsV1alphaFailurePolicyResponse 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.googlenative.integrations.v1alpha.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GoogleCloudIntegrationsV1alphaFailurePolicyResponse {
/**
* @return Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
*
*/
private String intervalTime;
/**
* @return Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
*
*/
private Integer maxRetries;
/**
* @return Defines what happens to the task upon failure.
*
*/
private String retryStrategy;
private GoogleCloudIntegrationsV1alphaFailurePolicyResponse() {}
/**
* @return Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
*
*/
public String intervalTime() {
return this.intervalTime;
}
/**
* @return Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed.
*
*/
public Integer maxRetries() {
return this.maxRetries;
}
/**
* @return Defines what happens to the task upon failure.
*
*/
public String retryStrategy() {
return this.retryStrategy;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GoogleCloudIntegrationsV1alphaFailurePolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String intervalTime;
private Integer maxRetries;
private String retryStrategy;
public Builder() {}
public Builder(GoogleCloudIntegrationsV1alphaFailurePolicyResponse defaults) {
Objects.requireNonNull(defaults);
this.intervalTime = defaults.intervalTime;
this.maxRetries = defaults.maxRetries;
this.retryStrategy = defaults.retryStrategy;
}
@CustomType.Setter
public Builder intervalTime(String intervalTime) {
this.intervalTime = Objects.requireNonNull(intervalTime);
return this;
}
@CustomType.Setter
public Builder maxRetries(Integer maxRetries) {
this.maxRetries = Objects.requireNonNull(maxRetries);
return this;
}
@CustomType.Setter
public Builder retryStrategy(String retryStrategy) {
this.retryStrategy = Objects.requireNonNull(retryStrategy);
return this;
}
public GoogleCloudIntegrationsV1alphaFailurePolicyResponse build() {
final var o = new GoogleCloudIntegrationsV1alphaFailurePolicyResponse();
o.intervalTime = intervalTime;
o.maxRetries = maxRetries;
o.retryStrategy = retryStrategy;
return o;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy