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

com.pulumi.aws.appmesh.inputs.RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;


public final class RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs extends com.pulumi.resources.ResourceArgs {

    public static final RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs Empty = new RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs();

    /**
     * Retry unit. Valid values: `ms`, `s`.
     * 
     */
    @Import(name="unit", required=true)
    private Output unit;

    /**
     * @return Retry unit. Valid values: `ms`, `s`.
     * 
     */
    public Output unit() {
        return this.unit;
    }

    /**
     * Retry value.
     * 
     */
    @Import(name="value", required=true)
    private Output value;

    /**
     * @return Retry value.
     * 
     */
    public Output value() {
        return this.value;
    }

    private RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs() {}

    private RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs(RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs $) {
        this.unit = $.unit;
        this.value = $.value;
    }

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

    public static final class Builder {
        private RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs $;

        public Builder() {
            $ = new RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs();
        }

        public Builder(RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs defaults) {
            $ = new RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param unit Retry unit. Valid values: `ms`, `s`.
         * 
         * @return builder
         * 
         */
        public Builder unit(Output unit) {
            $.unit = unit;
            return this;
        }

        /**
         * @param unit Retry unit. Valid values: `ms`, `s`.
         * 
         * @return builder
         * 
         */
        public Builder unit(String unit) {
            return unit(Output.of(unit));
        }

        /**
         * @param value Retry value.
         * 
         * @return builder
         * 
         */
        public Builder value(Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value Retry value.
         * 
         * @return builder
         * 
         */
        public Builder value(Integer value) {
            return value(Output.of(value));
        }

        public RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs build() {
            if ($.unit == null) {
                throw new MissingRequiredPropertyException("RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs", "unit");
            }
            if ($.value == null) {
                throw new MissingRequiredPropertyException("RouteSpecHttp2RouteRetryPolicyPerRetryTimeoutArgs", "value");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy