Class IngressRule.Builder

java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.IngressRule.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<IngressRule>
Enclosing interface:
IngressRule

@Stability(Experimental) public static final class IngressRule.Builder extends Object implements software.amazon.jsii.Builder<IngressRule>
A builder for IngressRule
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • port

      @Stability(Experimental) public IngressRule.Builder port(Port port)
      Sets the value of IngressRule.getPort()
      Parameters:
      port - The port range used for ingress traffic. This parameter is required.
      Returns:
      this
    • source

      @Stability(Experimental) public IngressRule.Builder source(IPeer source)
      Sets the value of IngressRule.getSource()
      Parameters:
      source - A range of allowed IP addresses . This parameter is required.
      Returns:
      this
    • build

      @Stability(Experimental) public IngressRule build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<IngressRule>
      Returns:
      a new instance of IngressRule
      Throws:
      NullPointerException - if any required attribute was not provided