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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-10-31T19:12:58.896Z") @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