title: SQS FIFO Using MessageGroupId to receive message
body: <p>How do I use the messagegroupid parameter to only receive queue messages tagged with the id I need?</p>
  
  <p>I've been trying to use the line below to retrieve but it will always receive all the queue messages from other group id as well.</p>
  
  <p><code>List&lt;Message&gt; messages = sqs.receiveMessage(receiveMessageRequest.withAttributeNames("MessageGroupId")).getMessages();</code></p>
  
  <p>What should be the correct way to do it?</p>