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

com.pulumi.aws.sagemaker.outputs.EndpointConfigurationProductionVariantRoutingConfig 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.sagemaker.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class EndpointConfigurationProductionVariantRoutingConfig {
    /**
     * @return Sets how the endpoint routes incoming traffic. Valid values are `LEAST_OUTSTANDING_REQUESTS` and `RANDOM`. `LEAST_OUTSTANDING_REQUESTS` routes requests to the specific instances that have more capacity to process them. `RANDOM` routes each request to a randomly chosen instance.
     * 
     */
    private String routingStrategy;

    private EndpointConfigurationProductionVariantRoutingConfig() {}
    /**
     * @return Sets how the endpoint routes incoming traffic. Valid values are `LEAST_OUTSTANDING_REQUESTS` and `RANDOM`. `LEAST_OUTSTANDING_REQUESTS` routes requests to the specific instances that have more capacity to process them. `RANDOM` routes each request to a randomly chosen instance.
     * 
     */
    public String routingStrategy() {
        return this.routingStrategy;
    }

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

    public static Builder builder(EndpointConfigurationProductionVariantRoutingConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String routingStrategy;
        public Builder() {}
        public Builder(EndpointConfigurationProductionVariantRoutingConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.routingStrategy = defaults.routingStrategy;
        }

        @CustomType.Setter
        public Builder routingStrategy(String routingStrategy) {
            if (routingStrategy == null) {
              throw new MissingRequiredPropertyException("EndpointConfigurationProductionVariantRoutingConfig", "routingStrategy");
            }
            this.routingStrategy = routingStrategy;
            return this;
        }
        public EndpointConfigurationProductionVariantRoutingConfig build() {
            final var _resultValue = new EndpointConfigurationProductionVariantRoutingConfig();
            _resultValue.routingStrategy = routingStrategy;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy