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

com.pulumi.aws.globalaccelerator.outputs.CustomRoutingEndpointGroupDestinationConfiguration 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.globalaccelerator.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class CustomRoutingEndpointGroupDestinationConfiguration {
    /**
     * @return The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
     * 
     */
    private Integer fromPort;
    /**
     * @return The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either `"TCP"` or `"UDP"`.
     * 
     */
    private List protocols;
    /**
     * @return The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
     * 
     */
    private Integer toPort;

    private CustomRoutingEndpointGroupDestinationConfiguration() {}
    /**
     * @return The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
     * 
     */
    public Integer fromPort() {
        return this.fromPort;
    }
    /**
     * @return The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either `"TCP"` or `"UDP"`.
     * 
     */
    public List protocols() {
        return this.protocols;
    }
    /**
     * @return The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
     * 
     */
    public Integer toPort() {
        return this.toPort;
    }

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

    public static Builder builder(CustomRoutingEndpointGroupDestinationConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer fromPort;
        private List protocols;
        private Integer toPort;
        public Builder() {}
        public Builder(CustomRoutingEndpointGroupDestinationConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.fromPort = defaults.fromPort;
    	      this.protocols = defaults.protocols;
    	      this.toPort = defaults.toPort;
        }

        @CustomType.Setter
        public Builder fromPort(Integer fromPort) {
            if (fromPort == null) {
              throw new MissingRequiredPropertyException("CustomRoutingEndpointGroupDestinationConfiguration", "fromPort");
            }
            this.fromPort = fromPort;
            return this;
        }
        @CustomType.Setter
        public Builder protocols(List protocols) {
            if (protocols == null) {
              throw new MissingRequiredPropertyException("CustomRoutingEndpointGroupDestinationConfiguration", "protocols");
            }
            this.protocols = protocols;
            return this;
        }
        public Builder protocols(String... protocols) {
            return protocols(List.of(protocols));
        }
        @CustomType.Setter
        public Builder toPort(Integer toPort) {
            if (toPort == null) {
              throw new MissingRequiredPropertyException("CustomRoutingEndpointGroupDestinationConfiguration", "toPort");
            }
            this.toPort = toPort;
            return this;
        }
        public CustomRoutingEndpointGroupDestinationConfiguration build() {
            final var _resultValue = new CustomRoutingEndpointGroupDestinationConfiguration();
            _resultValue.fromPort = fromPort;
            _resultValue.protocols = protocols;
            _resultValue.toPort = toPort;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy