public SecurityGroupReference withTransitGatewayId(String transitGatewayId) {
        setTransitGatewayId(transitGatewayId);
        return this;
    }
<note>
<p>
This parameter is in preview and may not be available for your account.
</p>
</note>
<p>
The ID of the transit gateway (if applicable).
</p>

@param transitGatewayId
       <p>
       This parameter is in preview and may not be available for your account.
       </p>
       </note>
       <p>
       The ID of the transit gateway (if applicable).
@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/SecurityGroupReference.java