public void setMulticastGroups(java.util.Collection<TransitGatewayMulticastGroup> multicastGroups) {
        if (multicastGroups == null) {
            this.multicastGroups = null;
            return;
        }

        this.multicastGroups = new com.amazonaws.internal.SdkInternalList<TransitGatewayMulticastGroup>(multicastGroups);
    }
<p>
Information about the transit gateway multicast group.
</p>

@param multicastGroups
       Information about the transit gateway multicast group.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/SearchTransitGatewayMulticastGroupsResult.java