Class ConnectionRule.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.ConnectionRule.Jsii$Proxy
All Implemented Interfaces:
ConnectionRule, software.amazon.jsii.JsiiSerializable
Enclosing interface:
ConnectionRule

@Stability(Stable) @Internal public static final class ConnectionRule.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ConnectionRule
An implementation for ConnectionRule
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.ConnectionRule

    ConnectionRule.Builder, ConnectionRule.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor that initializes the object based on literal property values passed by the ConnectionRule.Builder.
    protected
    Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
    Constructor that initializes the object based on values retrieved from the JsiiObject.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.databind.JsonNode
     
    final boolean
     
    final String
    Description of this connection.
    final Number
    Start of port range for the TCP and UDP protocols, or an ICMP type number.
    final String
    The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers).
    final Number
    End of port range for the TCP and UDP protocols, or an ICMP code.
    final int
     

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(ConnectionRule.Builder builder)
      Constructor that initializes the object based on literal property values passed by the ConnectionRule.Builder.
  • Method Details

    • getFromPort

      public final Number getFromPort()
      Description copied from interface: ConnectionRule
      Start of port range for the TCP and UDP protocols, or an ICMP type number.

      If you specify icmp for the IpProtocol property, you can specify -1 as a wildcard (i.e., any ICMP type number).

      Specified by:
      getFromPort in interface ConnectionRule
    • getDescription

      public final String getDescription()
      Description copied from interface: ConnectionRule
      Description of this connection.

      It is applied to both the ingress rule and the egress rule.

      Default: No description

      Specified by:
      getDescription in interface ConnectionRule
    • getProtocol

      public final String getProtocol()
      Description copied from interface: ConnectionRule
      The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers).

      Use -1 to specify all protocols. If you specify -1, or a protocol number other than tcp, udp, icmp, or 58 (ICMPv6), traffic on all ports is allowed, regardless of any ports you specify. For tcp, udp, and icmp, you must specify a port range. For protocol 58 (ICMPv6), you can optionally specify a port range; if you don't, traffic for all types and codes is allowed.

      Default: tcp

      Specified by:
      getProtocol in interface ConnectionRule
    • getToPort

      public final Number getToPort()
      Description copied from interface: ConnectionRule
      End of port range for the TCP and UDP protocols, or an ICMP code.

      If you specify icmp for the IpProtocol property, you can specify -1 as a wildcard (i.e., any ICMP code).

      Default: If toPort is not specified, it will be the same as fromPort.

      Specified by:
      getToPort in interface ConnectionRule
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object