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

com.pulumi.azurenative.app.outputs.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.app.outputs;

import com.pulumi.azurenative.app.outputs.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationResponse;
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 DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationResponse {
    /**
     * @return The optional maximum number of retries
     * 
     */
    private @Nullable Integer maxRetries;
    /**
     * @return The optional retry backoff configuration
     * 
     */
    private @Nullable DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationResponse retryBackOff;

    private DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationResponse() {}
    /**
     * @return The optional maximum number of retries
     * 
     */
    public Optional maxRetries() {
        return Optional.ofNullable(this.maxRetries);
    }
    /**
     * @return The optional retry backoff configuration
     * 
     */
    public Optional retryBackOff() {
        return Optional.ofNullable(this.retryBackOff);
    }

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

    public static Builder builder(DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer maxRetries;
        private @Nullable DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationResponse retryBackOff;
        public Builder() {}
        public Builder(DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.maxRetries = defaults.maxRetries;
    	      this.retryBackOff = defaults.retryBackOff;
        }

        @CustomType.Setter
        public Builder maxRetries(@Nullable Integer maxRetries) {

            this.maxRetries = maxRetries;
            return this;
        }
        @CustomType.Setter
        public Builder retryBackOff(@Nullable DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationResponse retryBackOff) {

            this.retryBackOff = retryBackOff;
            return this;
        }
        public DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationResponse build() {
            final var _resultValue = new DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationResponse();
            _resultValue.maxRetries = maxRetries;
            _resultValue.retryBackOff = retryBackOff;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy