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

com.pulumi.aws.appmesh.outputs.GetRouteSpecTcpRouteActionWeightedTarget 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.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