All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
PortRange.Jsii$Proxy

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-11T15:55:59.611Z") @Stability(Stable) public interface PortRange extends software.amazon.jsii.JsiiSerializable
The list of port ranges for the connections from clients to the accelerator.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.globalaccelerator.*;
 PortRange portRange = PortRange.builder()
         .fromPort(123)
         // the properties below are optional
         .toPort(123)
         .build();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder for PortRange
    static final class 
    An implementation for PortRange
  • Method Summary

    Modifier and Type
    Method
    Description
     
    The first port in the range of ports, inclusive.
    default Number
    The last port in the range of ports, inclusive.

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • getFromPort

      @Stability(Stable) @NotNull Number getFromPort()
      The first port in the range of ports, inclusive.
    • getToPort

      @Stability(Stable) @Nullable default Number getToPort()
      The last port in the range of ports, inclusive.

      Default: - same as `fromPort`

    • builder

      @Stability(Stable) static PortRange.Builder builder()
      Returns:
      a PortRange.Builder of PortRange