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

com.pulumi.aws.appmesh.outputs.GetRouteSpecHttpRouteRetryPolicy Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.appmesh.outputs;

import com.pulumi.aws.appmesh.outputs.GetRouteSpecHttpRouteRetryPolicyPerRetryTimeout;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetRouteSpecHttpRouteRetryPolicy {
    private List httpRetryEvents;
    private Integer maxRetries;
    private List perRetryTimeouts;
    private List tcpRetryEvents;

    private GetRouteSpecHttpRouteRetryPolicy() {}
    public List httpRetryEvents() {
        return this.httpRetryEvents;
    }
    public Integer maxRetries() {
        return this.maxRetries;
    }
    public List perRetryTimeouts() {
        return this.perRetryTimeouts;
    }
    public List tcpRetryEvents() {
        return this.tcpRetryEvents;
    }

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

    public static Builder builder(GetRouteSpecHttpRouteRetryPolicy defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List httpRetryEvents;
        private Integer maxRetries;
        private List perRetryTimeouts;
        private List tcpRetryEvents;
        public Builder() {}
        public Builder(GetRouteSpecHttpRouteRetryPolicy defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.httpRetryEvents = defaults.httpRetryEvents;
    	      this.maxRetries = defaults.maxRetries;
    	      this.perRetryTimeouts = defaults.perRetryTimeouts;
    	      this.tcpRetryEvents = defaults.tcpRetryEvents;
        }

        @CustomType.Setter
        public Builder httpRetryEvents(List httpRetryEvents) {
            if (httpRetryEvents == null) {
              throw new MissingRequiredPropertyException("GetRouteSpecHttpRouteRetryPolicy", "httpRetryEvents");
            }
            this.httpRetryEvents = httpRetryEvents;
            return this;
        }
        public Builder httpRetryEvents(String... httpRetryEvents) {
            return httpRetryEvents(List.of(httpRetryEvents));
        }
        @CustomType.Setter
        public Builder maxRetries(Integer maxRetries) {
            if (maxRetries == null) {
              throw new MissingRequiredPropertyException("GetRouteSpecHttpRouteRetryPolicy", "maxRetries");
            }
            this.maxRetries = maxRetries;
            return this;
        }
        @CustomType.Setter
        public Builder perRetryTimeouts(List perRetryTimeouts) {
            if (perRetryTimeouts == null) {
              throw new MissingRequiredPropertyException("GetRouteSpecHttpRouteRetryPolicy", "perRetryTimeouts");
            }
            this.perRetryTimeouts = perRetryTimeouts;
            return this;
        }
        public Builder perRetryTimeouts(GetRouteSpecHttpRouteRetryPolicyPerRetryTimeout... perRetryTimeouts) {
            return perRetryTimeouts(List.of(perRetryTimeouts));
        }
        @CustomType.Setter
        public Builder tcpRetryEvents(List tcpRetryEvents) {
            if (tcpRetryEvents == null) {
              throw new MissingRequiredPropertyException("GetRouteSpecHttpRouteRetryPolicy", "tcpRetryEvents");
            }
            this.tcpRetryEvents = tcpRetryEvents;
            return this;
        }
        public Builder tcpRetryEvents(String... tcpRetryEvents) {
            return tcpRetryEvents(List.of(tcpRetryEvents));
        }
        public GetRouteSpecHttpRouteRetryPolicy build() {
            final var _resultValue = new GetRouteSpecHttpRouteRetryPolicy();
            _resultValue.httpRetryEvents = httpRetryEvents;
            _resultValue.maxRetries = maxRetries;
            _resultValue.perRetryTimeouts = perRetryTimeouts;
            _resultValue.tcpRetryEvents = tcpRetryEvents;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy