public SecurityGroupRule withIsEgress(Boolean isEgress) {
        setIsEgress(isEgress);
        return this;
    }
<p>
Indicates whether the security group rule is an outbound rule.
</p>

@param isEgress
       Indicates whether the security group rule is an outbound rule.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/SecurityGroupRule.java