com.pulumi.aws.appmesh.outputs.GetRouteSpecTcpRouteActionWeightedTarget 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.
// *** 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;
@CustomType
public final class GetRouteSpecTcpRouteActionWeightedTarget {
private Integer port;
private String virtualNode;
private Integer weight;
private GetRouteSpecTcpRouteActionWeightedTarget() {}
public Integer port() {
return this.port;
}
public String virtualNode() {
return this.virtualNode;
}
public Integer weight() {
return this.weight;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetRouteSpecTcpRouteActionWeightedTarget defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer port;
private String virtualNode;
private Integer weight;
public Builder() {}
public Builder(GetRouteSpecTcpRouteActionWeightedTarget defaults) {
Objects.requireNonNull(defaults);
this.port = defaults.port;
this.virtualNode = defaults.virtualNode;
this.weight = defaults.weight;
}
@CustomType.Setter
public Builder port(Integer port) {
if (port == null) {
throw new MissingRequiredPropertyException("GetRouteSpecTcpRouteActionWeightedTarget", "port");
}
this.port = port;
return this;
}
@CustomType.Setter
public Builder virtualNode(String virtualNode) {
if (virtualNode == null) {
throw new MissingRequiredPropertyException("GetRouteSpecTcpRouteActionWeightedTarget", "virtualNode");
}
this.virtualNode = virtualNode;
return this;
}
@CustomType.Setter
public Builder weight(Integer weight) {
if (weight == null) {
throw new MissingRequiredPropertyException("GetRouteSpecTcpRouteActionWeightedTarget", "weight");
}
this.weight = weight;
return this;
}
public GetRouteSpecTcpRouteActionWeightedTarget build() {
final var _resultValue = new GetRouteSpecTcpRouteActionWeightedTarget();
_resultValue.port = port;
_resultValue.virtualNode = virtualNode;
_resultValue.weight = weight;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy