public Integer getToPort() {
        return this.toPort;
    }
<p>
If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this is the
ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must be -1 (all
ICMP codes).
</p>

@return If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this
        is the ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must
        be -1 (all ICMP codes).
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/SecurityGroupRule.java