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

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

import com.pulumi.aws.appmesh.inputs.RouteSpecGrpcRouteActionArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecGrpcRouteMatchArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecGrpcRouteRetryPolicyArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecGrpcRouteTimeoutArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final RouteSpecGrpcRouteArgs Empty = new RouteSpecGrpcRouteArgs();

    /**
     * Action to take if a match is determined.
     * 
     */
    @Import(name="action", required=true)
    private Output action;

    /**
     * @return Action to take if a match is determined.
     * 
     */
    public Output action() {
        return this.action;
    }

    /**
     * Criteria for determining an gRPC request match.
     * 
     */
    @Import(name="match")
    private @Nullable Output match;

    /**
     * @return Criteria for determining an gRPC request match.
     * 
     */
    public Optional> match() {
        return Optional.ofNullable(this.match);
    }

    /**
     * Retry policy.
     * 
     */
    @Import(name="retryPolicy")
    private @Nullable Output retryPolicy;

    /**
     * @return Retry policy.
     * 
     */
    public Optional> retryPolicy() {
        return Optional.ofNullable(this.retryPolicy);
    }

    /**
     * Types of timeouts.
     * 
     */
    @Import(name="timeout")
    private @Nullable Output timeout;

    /**
     * @return Types of timeouts.
     * 
     */
    public Optional> timeout() {
        return Optional.ofNullable(this.timeout);
    }

    private RouteSpecGrpcRouteArgs() {}

    private RouteSpecGrpcRouteArgs(RouteSpecGrpcRouteArgs $) {
        this.action = $.action;
        this.match = $.match;
        this.retryPolicy = $.retryPolicy;
        this.timeout = $.timeout;
    }

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

    public static final class Builder {
        private RouteSpecGrpcRouteArgs $;

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

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

        /**
         * @param action Action to take if a match is determined.
         * 
         * @return builder
         * 
         */
        public Builder action(Output action) {
            $.action = action;
            return this;
        }

        /**
         * @param action Action to take if a match is determined.
         * 
         * @return builder
         * 
         */
        public Builder action(RouteSpecGrpcRouteActionArgs action) {
            return action(Output.of(action));
        }

        /**
         * @param match Criteria for determining an gRPC request match.
         * 
         * @return builder
         * 
         */
        public Builder match(@Nullable Output match) {
            $.match = match;
            return this;
        }

        /**
         * @param match Criteria for determining an gRPC request match.
         * 
         * @return builder
         * 
         */
        public Builder match(RouteSpecGrpcRouteMatchArgs match) {
            return match(Output.of(match));
        }

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

        /**
         * @param retryPolicy Retry policy.
         * 
         * @return builder
         * 
         */
        public Builder retryPolicy(RouteSpecGrpcRouteRetryPolicyArgs retryPolicy) {
            return retryPolicy(Output.of(retryPolicy));
        }

        /**
         * @param timeout Types of timeouts.
         * 
         * @return builder
         * 
         */
        public Builder timeout(@Nullable Output timeout) {
            $.timeout = timeout;
            return this;
        }

        /**
         * @param timeout Types of timeouts.
         * 
         * @return builder
         * 
         */
        public Builder timeout(RouteSpecGrpcRouteTimeoutArgs timeout) {
            return timeout(Output.of(timeout));
        }

        public RouteSpecGrpcRouteArgs build() {
            if ($.action == null) {
                throw new MissingRequiredPropertyException("RouteSpecGrpcRouteArgs", "action");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy