public CreateTrafficMirrorSessionRequest withVirtualNetworkId(Integer virtualNetworkId) {
        setVirtualNetworkId(virtualNetworkId);
        return this;
    }
<p>
The VXLAN ID for the Traffic Mirror session. For more information about the VXLAN protocol, see <a
href="https://datatracker.ietf.org/doc/html/rfc7348">RFC 7348</a>. If you do not specify a
<code>VirtualNetworkId</code>, an account-wide unique ID is chosen at random.
</p>

@param virtualNetworkId
       The VXLAN ID for the Traffic Mirror session. For more information about the VXLAN protocol, see <a
       href="https://datatracker.ietf.org/doc/html/rfc7348">RFC 7348</a>. If you do not specify a
       <code>VirtualNetworkId</code>, an account-wide unique ID is chosen at random.
@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/CreateTrafficMirrorSessionRequest.java