com.pulumi.aws.globalaccelerator.inputs.CustomRoutingEndpointGroupDestinationConfigurationArgs 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.globalaccelerator.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
public final class CustomRoutingEndpointGroupDestinationConfigurationArgs extends com.pulumi.resources.ResourceArgs {
public static final CustomRoutingEndpointGroupDestinationConfigurationArgs Empty = new CustomRoutingEndpointGroupDestinationConfigurationArgs();
/**
* The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
*
*/
@Import(name="fromPort", required=true)
private Output fromPort;
/**
* @return The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
*
*/
public Output fromPort() {
return this.fromPort;
}
/**
* The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either `"TCP"` or `"UDP"`.
*
*/
@Import(name="protocols", required=true)
private Output> protocols;
/**
* @return The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either `"TCP"` or `"UDP"`.
*
*/
public Output> protocols() {
return this.protocols;
}
/**
* The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
*
*/
@Import(name="toPort", required=true)
private Output toPort;
/**
* @return The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
*
*/
public Output toPort() {
return this.toPort;
}
private CustomRoutingEndpointGroupDestinationConfigurationArgs() {}
private CustomRoutingEndpointGroupDestinationConfigurationArgs(CustomRoutingEndpointGroupDestinationConfigurationArgs $) {
this.fromPort = $.fromPort;
this.protocols = $.protocols;
this.toPort = $.toPort;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CustomRoutingEndpointGroupDestinationConfigurationArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private CustomRoutingEndpointGroupDestinationConfigurationArgs $;
public Builder() {
$ = new CustomRoutingEndpointGroupDestinationConfigurationArgs();
}
public Builder(CustomRoutingEndpointGroupDestinationConfigurationArgs defaults) {
$ = new CustomRoutingEndpointGroupDestinationConfigurationArgs(Objects.requireNonNull(defaults));
}
/**
* @param fromPort The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
*
* @return builder
*
*/
public Builder fromPort(Output fromPort) {
$.fromPort = fromPort;
return this;
}
/**
* @param fromPort The first port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
*
* @return builder
*
*/
public Builder fromPort(Integer fromPort) {
return fromPort(Output.of(fromPort));
}
/**
* @param protocols The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either `"TCP"` or `"UDP"`.
*
* @return builder
*
*/
public Builder protocols(Output> protocols) {
$.protocols = protocols;
return this;
}
/**
* @param protocols The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either `"TCP"` or `"UDP"`.
*
* @return builder
*
*/
public Builder protocols(List protocols) {
return protocols(Output.of(protocols));
}
/**
* @param protocols The protocol for the endpoint group that is associated with a custom routing accelerator. The protocol can be either `"TCP"` or `"UDP"`.
*
* @return builder
*
*/
public Builder protocols(String... protocols) {
return protocols(List.of(protocols));
}
/**
* @param toPort The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
*
* @return builder
*
*/
public Builder toPort(Output toPort) {
$.toPort = toPort;
return this;
}
/**
* @param toPort The last port, inclusive, in the range of ports for the endpoint group that is associated with a custom routing accelerator.
*
* @return builder
*
*/
public Builder toPort(Integer toPort) {
return toPort(Output.of(toPort));
}
public CustomRoutingEndpointGroupDestinationConfigurationArgs build() {
if ($.fromPort == null) {
throw new MissingRequiredPropertyException("CustomRoutingEndpointGroupDestinationConfigurationArgs", "fromPort");
}
if ($.protocols == null) {
throw new MissingRequiredPropertyException("CustomRoutingEndpointGroupDestinationConfigurationArgs", "protocols");
}
if ($.toPort == null) {
throw new MissingRequiredPropertyException("CustomRoutingEndpointGroupDestinationConfigurationArgs", "toPort");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy