com.pulumi.aws.appmesh.outputs.RouteSpecHttp2RouteActionWeightedTarget Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The 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.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RouteSpecHttp2RouteActionWeightedTarget {
/**
* @return The targeted port of the weighted object.
*
*/
private @Nullable Integer port;
/**
* @return Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
*
*/
private String virtualNode;
/**
* @return Relative weight of the weighted target. An integer between 0 and 100.
*
*/
private Integer weight;
private RouteSpecHttp2RouteActionWeightedTarget() {}
/**
* @return The targeted port of the weighted object.
*
*/
public Optional port() {
return Optional.ofNullable(this.port);
}
/**
* @return Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
*
*/
public String virtualNode() {
return this.virtualNode;
}
/**
* @return Relative weight of the weighted target. An integer between 0 and 100.
*
*/
public Integer weight() {
return this.weight;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RouteSpecHttp2RouteActionWeightedTarget defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer port;
private String virtualNode;
private Integer weight;
public Builder() {}
public Builder(RouteSpecHttp2RouteActionWeightedTarget defaults) {
Objects.requireNonNull(defaults);
this.port = defaults.port;
this.virtualNode = defaults.virtualNode;
this.weight = defaults.weight;
}
@CustomType.Setter
public Builder port(@Nullable Integer port) {
this.port = port;
return this;
}
@CustomType.Setter
public Builder virtualNode(String virtualNode) {
if (virtualNode == null) {
throw new MissingRequiredPropertyException("RouteSpecHttp2RouteActionWeightedTarget", "virtualNode");
}
this.virtualNode = virtualNode;
return this;
}
@CustomType.Setter
public Builder weight(Integer weight) {
if (weight == null) {
throw new MissingRequiredPropertyException("RouteSpecHttp2RouteActionWeightedTarget", "weight");
}
this.weight = weight;
return this;
}
public RouteSpecHttp2RouteActionWeightedTarget build() {
final var _resultValue = new RouteSpecHttp2RouteActionWeightedTarget();
_resultValue.port = port;
_resultValue.virtualNode = virtualNode;
_resultValue.weight = weight;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy