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

com.pulumi.azurenative.datafactory.outputs.RetryPolicyResponse Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** 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.datafactory.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.Object;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RetryPolicyResponse {
    /**
     * @return Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0.
     * 
     */
    private @Nullable Object count;
    /**
     * @return Interval between retries in seconds. Default is 30.
     * 
     */
    private @Nullable Integer intervalInSeconds;

    private RetryPolicyResponse() {}
    /**
     * @return Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0.
     * 
     */
    public Optional count() {
        return Optional.ofNullable(this.count);
    }
    /**
     * @return Interval between retries in seconds. Default is 30.
     * 
     */
    public Optional intervalInSeconds() {
        return Optional.ofNullable(this.intervalInSeconds);
    }

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

    public static Builder builder(RetryPolicyResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Object count;
        private @Nullable Integer intervalInSeconds;
        public Builder() {}
        public Builder(RetryPolicyResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.count = defaults.count;
    	      this.intervalInSeconds = defaults.intervalInSeconds;
        }

        @CustomType.Setter
        public Builder count(@Nullable Object count) {

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

            this.intervalInSeconds = intervalInSeconds;
            return this;
        }
        public RetryPolicyResponse build() {
            final var _resultValue = new RetryPolicyResponse();
            _resultValue.count = count;
            _resultValue.intervalInSeconds = intervalInSeconds;
            return _resultValue;
        }
    }
}