public TransitGatewayOptions withSecurityGroupReferencingSupport(SecurityGroupReferencingSupportValue securityGroupReferencingSupport) {
        this.securityGroupReferencingSupport = securityGroupReferencingSupport.toString();
        return this;
    }
<note>
<p>
This parameter is in preview and may not be available for your account.
</p>
</note>
<p>
Enables you to reference a security group across VPCs attached to a transit gateway. Use this option to simplify
security group management and control of instance-to-instance traffic across VPCs that are connected by transit
gateway. You can also use this option to migrate from VPC peering (which was the only option that supported
security group referencing) to transit gateways (which now also support security group referencing). This option
is disabled by default and there are no additional costs to use this feature.
</p>

@param securityGroupReferencingSupport
       <p>
       This parameter is in preview and may not be available for your account.
       </p>
       </note>
       <p>
       Enables you to reference a security group across VPCs attached to a transit gateway. Use this option to
       simplify security group management and control of instance-to-instance traffic across VPCs that are
       connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only
       option that supported security group referencing) to transit gateways (which now also support security
       group referencing). This option is disabled by default and there are no additional costs to use this
       feature.
@return Returns a reference to this object so that method calls can be chained together.
@see SecurityGroupReferencingSupportValue
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/TransitGatewayOptions.java