public void setEgress(Boolean egress) {
        this.egress = egress;
    }
<p>
Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
</p>

@param egress
       Indicates whether the rule is an egress rule (applied to traffic leaving the subnet).
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/NetworkAclEntry.java