
com.pulumi.aws.appmesh.inputs.RouteSpecTcpRouteActionArgs 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.RouteSpecTcpRouteActionWeightedTargetArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
public final class RouteSpecTcpRouteActionArgs extends com.pulumi.resources.ResourceArgs {
public static final RouteSpecTcpRouteActionArgs Empty = new RouteSpecTcpRouteActionArgs();
/**
* 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.
*
*/
@Import(name="weightedTargets", required=true)
private Output> weightedTargets;
/**
* @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 Output> weightedTargets() {
return this.weightedTargets;
}
private RouteSpecTcpRouteActionArgs() {}
private RouteSpecTcpRouteActionArgs(RouteSpecTcpRouteActionArgs $) {
this.weightedTargets = $.weightedTargets;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RouteSpecTcpRouteActionArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private RouteSpecTcpRouteActionArgs $;
public Builder() {
$ = new RouteSpecTcpRouteActionArgs();
}
public Builder(RouteSpecTcpRouteActionArgs defaults) {
$ = new RouteSpecTcpRouteActionArgs(Objects.requireNonNull(defaults));
}
/**
* @param weightedTargets 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.
*
* @return builder
*
*/
public Builder weightedTargets(Output> weightedTargets) {
$.weightedTargets = weightedTargets;
return this;
}
/**
* @param weightedTargets 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.
*
* @return builder
*
*/
public Builder weightedTargets(List weightedTargets) {
return weightedTargets(Output.of(weightedTargets));
}
/**
* @param weightedTargets 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.
*
* @return builder
*
*/
public Builder weightedTargets(RouteSpecTcpRouteActionWeightedTargetArgs... weightedTargets) {
return weightedTargets(List.of(weightedTargets));
}
public RouteSpecTcpRouteActionArgs build() {
if ($.weightedTargets == null) {
throw new MissingRequiredPropertyException("RouteSpecTcpRouteActionArgs", "weightedTargets");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy