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

com.pulumi.aws.appmesh.outputs.RouteSpecHttp2RouteAction 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.RouteSpecHttp2RouteActionWeightedTarget;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;

@CustomType
public final class RouteSpecHttp2RouteAction {
    /**
     * @return Targets that traffic is routed to when a request matches the route.
     * You can specify one or more targets and their relative weights with which to distribute traffic.
     * 
     */
    private List weightedTargets;

    private RouteSpecHttp2RouteAction() {}
    /**
     * @return Targets that traffic is routed to when a request matches the route.
     * You can specify one or more targets and their relative weights with which to distribute traffic.
     * 
     */
    public List weightedTargets() {
        return this.weightedTargets;
    }

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

    public static Builder builder(RouteSpecHttp2RouteAction defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List weightedTargets;
        public Builder() {}
        public Builder(RouteSpecHttp2RouteAction defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.weightedTargets = defaults.weightedTargets;
        }

        @CustomType.Setter
        public Builder weightedTargets(List weightedTargets) {
            if (weightedTargets == null) {
              throw new MissingRequiredPropertyException("RouteSpecHttp2RouteAction", "weightedTargets");
            }
            this.weightedTargets = weightedTargets;
            return this;
        }
        public Builder weightedTargets(RouteSpecHttp2RouteActionWeightedTarget... weightedTargets) {
            return weightedTargets(List.of(weightedTargets));
        }
        public RouteSpecHttp2RouteAction build() {
            final var _resultValue = new RouteSpecHttp2RouteAction();
            _resultValue.weightedTargets = weightedTargets;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy